Marty

I have come across this problem and it seems to stem from how queries are 
executed within you Mapbasic program.  You have two methods when using 
variables as part of the SQL.

1.      Select * from myVarName into ~ATest
2.      szCmd = "Select * from " + myVarName + " into ~ATest"
        Run Command szCmd

If my memory is working (haven't had the daily caffeine intake yet!) - if 
MapInfo still has the table open from the first style of querying it will not 
be able to save the workspace but if the second method is used all should be 
fine.

Regards
Michael Saunt

On 04 June 1999 23:22, Marty DeBenedictis [SMTP:[EMAIL PROTECTED]] wrote:
: I found part of what I was looking for in the archives.  Apparently it
: only happens when the "Save queries with workspace" box is checked in
: Options>Preferences>startup.  I unchecked this box and now it works, but
: my queries are gone.  Anyone know a workaround for this?
: Thanks again,
: Marty
:
: Original message:
: Ok, this one is odd.  I have a MapBasic routine that saves a workspace
: to a temporary directory using the following:
: save workspace as "C:\temp\wkspace.wor"
: It works fine on every workspace I've tried except one.  For that one, I
: get "Unable to Save Workspace" error.  Here's the strange part: if I
: copy and paste the offending line directly into the MapBasic window, it
: works fine.  Huh?  Does the MapBasic window have a better working
: relationship with MI than a compiled mbx?  And what could it be about
: this one workspace that's causing so much trouble?
: MI 5.0.1  NT 4.0
: TIA,
: Marty
: ------------------------------------
: Marty DeBenedictis
: Community Mapping Assistance Project - NYPIRG
: http://www.cmap.nypirg.org
: [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]
----------------------------------------------------------------------
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