Compile a MapBasic file:

Create a batch file with lines like below:

@Echo off
"C:\Program Files\MapInfo\MapBasic750\Mapbasic.Exe" -NOSPLASH -D ""%1.mb""
if exist ""%1.err"" type ""%1.err"

Change path and name it MB_Compile_750.bat

In Ultraedit menu Advanced > Tool Configuration add a Command line:
"D:\Dev\UltraEdit_setup\Batch\MB_Compile_750.bat" "%p%n"

Change path and add settings like pix below.

Link MapBasic files in a project:
Create a new batch file for linking MBO files and call it Link750.bat and enter the following lines:

@Echo off
"C:\Program Files\MapInfo\MapBasic750\Mapbasic.Exe" -NOSPLASH -L ""%1.mbp""
if exist ""%1.err"" type ""%1.err""

Change path. Like before add a reference to the batch file in the command line of the tool configuration:

"D:\Dev\UltraEdit_setup\Batch\Link750.bat" "%rp%rn"

For this link file to work one has to name the MapBasic project the same as the Ultraedit project.

This is all. Now you can compile and link your MapBasic code with Ultraedit. Any error in your code will be captured to a debug window in Ultraedit. Just like the original MapBasic editor.

Checkout other Ultraedit hints here.

<<Home