Paul

Thanks for getting back.  I'm steering away from trying to control MI
from VFP code.  You may recall the problems I had with IM.  All my
control of MI is now in my MB application.

Would another slant on your solution then be to transfer my statup.wor
code to a MapBasic .MB, which is the first procedure called in my MB
application, and then invoke the MB app. from my VFP app., instead of
invoking MI (which calls the .wor)?  

Or via:  Run Application "PathToMy\whatever.wor"?

I can't find "Home" and "Working" directories via
'Options'/Preferences/System settings', nor via the "Directories" button
thereon.  Maybe I should point out that I'm using MI 7.0, and that the
path to these may be different in your version?

As for "MapBasic statements to control them" I can only find functions
to find them, such as:

HomeDirectory$().


Cheers

Terry

-----Original Message-----

Terry

Best thing to do - to have maximum control - is to avoid the use of
workspaces when you have your own code you can use. You can take the
statements in the workspace file and put them into your Fox Pro code.
First
line should be "Close All" to shut down any tables, and that is the last
thing you tell MapInfo to do before trashing the object reference on the
way
out - this way you have complete control over map contents and you can
also
trap the ID of the new map window or windows as they open.

Workspaces are very useful - like the MapBasic window - for recording
the
staments you need to use to repeat results - but I think they are a bit
of a
vulnerable component in a customised program. Obviously its different if
you
aren't programing, when they are a valuable tool.

The 'home' and 'working' directories crop up on here every now and then
- if
you open up ordinary MapInfo desktop you'll find these under
'Options'/Preferences/System settings' and there are MapBAsic statements
to
control them - look at the MB ref (if you haven't got it I believe its a
free
pdf on the MapInfo site). They get changed around with the user now
because
of the wonderful world of profiles

Paul Crisp





---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 11566

Reply via email to