that's why none of my apps rely on system variables, because they vary. on my machine alone i have 21 profiles stored, some with sub-domain features and whatnot. it's impossible to guess where the user's thing is going to be everytime, and i don't have the time/patience to make a robust solution that will always find the right spot.
when my users get pop-up boxes asking them to 'locate mapinfow.pen', sometimes it opens to the mapinfo directory, sometimes to 'my documents', sometimes to a random location on the server. they've got no idea, just shrug and hit cancel cancel cancel cancel. one of the few things you CAN control is exactly where you put the stuff YOU make. so my advice would be to stay away from system variables unless you're willing to learn a whole lot of stuff that's totally boring and confusing. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 28 April 2004 7:32 PM To: [EMAIL PROTECTED] Subject: RE: MI-L Startup.Wor 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 BT Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: Terry McDonnell [mailto:[EMAIL PROTECTED] Sent: 28 April 2004 10:48 To: [EMAIL PROTECTED] Subject: MI-L Startup.Wor Hello, List Although fairly new to MI I only usually ask a question of the group once I've read Help till I'm blue in the face. Well . I'm blue in the face. I have a Startup.wor, in the "C:\Program Files\MapInfo\Professional" folder, that brings up all my maps and settings fine. I invoke Mapinfo.exe, with the "Run" command, from my VFP 7 system (it's like the visual mapping sub-system of my overall application). The trouble is: The customer also uses MI extensively for his own purposes, independent of this application and, understandably, doesn't want MY maps etc. springing up on these occasions, preferring his own start up settings. So, on the user's system, how can I have MY startup.wor invoked (or, indeed, a custom .WOR), when MI is started from MY system, but have his own when it's started independently? All I can find from Help is: * If there is a STARTUP.WOR in the MapInfo Professional program directory, it is run. * Then, if there is a STARTUP.WOR in your home directory it is run. (When there is a STARTUP.WOR in both the MapInfo Professional program directory and your home directory, both will= run.) Help, in the same text, had already stated: 4. Name your workspace "Startup" and save the workspace into your "home" directory. By "home" directory we mean your private Windows directory. This is the bit that's flummoxing me. What is meant by "home directory" and "private Windows directory"? I can find no further reference to these at all. Indeed, the words "Home", "Directory", "Folder", etc. do not even feature in the Index. Is there the concept of "Home" and "Working" directories in MI, with some functions to establish these? Your help would be much appreciated. TIA Terry McDonnell ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.btsyntegra.com ******************************************************************** --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 11564
