Thanks Gary for the answer to this.

If you have any code outside of any declared subroutine (other than global
statements and declares)  the compiler
treats that code as the Main subroutine.

Graham

-----Original Message-----
From: Graham Smith <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 20 March 2000 16:26
Subject: MI Project Modules


>Dear List,
>
>I have just done the impossible - compiled a MapBasic program into an
>executable even though it doesn't contain a sub Main(), or even any mention
>of the word "main" anywhere in the program.
>
>This is actually not as clever as it seems, because the program should be a
>module that forms part of a project - and by creating an MBX instead of an
>MBO the project cannot link.
>
>Has anybody had this problem before - and is there a way to force the
>program to save as an MBO??
>
>Thanks,
>
>Graham Smith
>
>
>
>
>
>
>
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
>

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to