I am trying to use the run command to write to an open file the following
way
a=frontwindow()
run command "print #9, "+a
I get a "Command unavailable: Write." Notice that >> run command "print "+a
<< will work.
Does the following sentence from the help file be the key to it :"The rc
statement has some restrictions, due to the fact that the command parameter
is interpreted at run-time, rather than being compiled".
For me run-time is equivalent to the MapBasic Window environment (which is
not compiled). Can I see the "run command" as being bound to the MBW
environment and thus having the same restrictions? And that the handling of
files is impossible with run command?
As the continuation of the previous quotation is "You cannot use a rc
statement to issue a dialog statement. Also, variable names may not appeared
enclosed in quotes", wouldn't you have interpreted that as all the
restrictions we were warned about?
I expect to learn I am right and I already hate it. Any work around?
Jacques Paris
e-mail [EMAIL PROTECTED]
MapInfo/MapBasic support http://www.paris-pc-gis.com
_______________________________________________________________________
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.