Include is one of the statements that cannot be executed via a run command. MB Help specifies for example that a dialog cannot be the object of a run command, "due to the fact that the command parameter is interpreted at run-time, rather than being compiled". And the included file must be available at compile time. Therefore....
Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -----Original Message----- From: frank hebbert [mailto:[EMAIL PROTECTED]] Sent: September 3, 2002 07:30 To: [EMAIL PROTECTED] Subject: MI-L Include statement I'm confused... Why does this work: Include "C:\Documents and Settings\frank\Application Data\MapInfo\MapInfo\Professional\700\test.def" but not this, which won't even compile: myFile = chr$(34) + "C:\Documents and Settings\frank\Application Data\MapInfo\MapInfo\Professional\700\test.def" + chr$(34) Include myFile This doesn't work either: myFile = chr$(34) + "C:\Documents and Settings\frank\Application Data\MapInfo\MapInfo\Professional\700\test.def" + chr$(34) myCommand = "Include " + myFile run command myCommand Any comments? All my variables are strings. TIA Frank --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 2787 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 2792
