Thanks for the response everybody... There are a lot of UltraEdit users out there who aren't using the mapbasic editor much these days because it pales in comparison. It looks like I'll be joining you. I have received a couple of language definition files, and I'm waiting for one that includes all the 6.0 definitions. The big question most people wanted to know was how you set up UltraEdit to compile MB code but also list the *.err file. The following solution works, and as a bonus, you just have to double-click on error line and it jumps the cursor to that line in the mb source. The trick is to run the compile from a DOS batch file, and launch the batch file as the user tool for MB compilation. Here's my batch file: "C:\Program Files\MapInfo\Mapbasic.exe" -D "%1" type "%2" The %1 and %2 are the old DOS way of passing parameters. You run this batch file with its full name followed by "%f" and "%p%n.err" which UltraEdit will convert to your source file and the error file names and pass them as command line parameters. The first line compiles the file by invoking MapBasic, and the second like types out the errors (or crabs about "file not found" if your programming is perfect.) Then I saved this batch file in my MapInfo directory and called it MI_Compile.bat. Then in UltraEdit choose "Tool Configuration..." from the Advanced menu. On the Tool Configuration dialog enter the full path and filename of the batch file in the "Command Line" edittext control. Wrap it in quotes if it has spaces in it. On the same line append "%f" and "%p%n.err" separated by a space each, and keep the double quotes around them. Remember that old DOS is like the God of the old testament --lots of rules and little mercy-- so use those quotes! Your path may vary, but your command like should look something like this: "C:\Program Files\MapInfo\MI_Compile.bat" "%f" "%p%n.err" You can leave "Working Directory" blank, but fill in something like "MapBasic Compile" for the "Menu Item Name" control. Do not check "Check if Windows file", and I found "Save all files" not to work reliably, but you can check that if you like. In the "Command Output (DOS COmmands)" group box choose "Output to list box" and check "Capture Output". Click the Insert button and then OK to dismiss the dialog. Now with a mapbasic file in your top edit window, choose the newly-added "MapBasic Compile" option from the Advanced menu. Your file launches DOS, runs the batch file, launches Mapbasic and compiles, closes MapBasic, then types the *.err file (if it exists) into the UltraEdit Output Window, and then the DOS window closes. If you have errors, just double-click on any lines describing an error there in the OUtput Window, and the cursor jumps to that line in your source window. The command line for configuring the UltraEdit tool for linking is: C:\Program Files\MapInfo\Mapbasic.exe -L "%f" and this *is* a Windows program. You will also need to make your *.mbp file the top window in UltraEdit. UltraEdit (http://wwww.ultraedit.com) is a *very nice* shareware editor, and the author responds to tech support questions in less than a half hour! Super service and quality software. - Bill Thoen ------------------------------------------------------------ GISnet, 1401 Walnut St., Suite C, Boulder, CO 80302 tel: 303-786-9961, fax: 303-443-4856 mailto:[EMAIL PROTECTED], http://www.ctmap.com/gisnet ------------------------------------------------------------ _______________________________________________________________________ List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MapInfo-L" in the message body.
