Hi S�ren,
There is a bug in the "Save Workspace As" command, making Pro throw an exception if
queries are enabled in the options setup
(usually are). You need to use "Run Command" to circumvent this bug.
I.e., instead of issuing
Save Workspace As pathname
you need to issue
Run Command "Save Workspace As """ + pathname + """"
Same thing, just run a different way.
Best regards/Med venlig hilsen
Lars V. Nielsen
GisPro, Denmark
http://www.gispro.dk/
----- Original Message -----
From: "S�ren Breddam" <[EMAIL PROTECTED]>
To: "MapInfo-L (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, September 02, 2004 11:47 PM
Subject: Sum: MI-L 'Save Workspace As' in my specified path?
Bill Thoen => use the FileSaveAsDlg() function
Thank YOU. I helplessly stared at the 'M_FILE_SAVE_WORKSPACE' command...
FileSaveAsDlg ( path , filename, filetype, prompt ) (From MB help)
The 'path' thing was what I was looking for. Then I can do a 'Save Workspace
As' afterwards.
This list beats everything :-D
Regards
S�ren Breddam
GIS- og IT-koordinator
Teknik og Erhvervsforvaltningen
Stevns Kommune - www.stevns.dk
* Tlf.: 5656 1800
* Dir.: 5656 1891
-----Oprindelig meddelelse-----
Fra: Bill Thoen [mailto:[EMAIL PROTECTED]
Sendt: 2. september 2004 23:29
Til: S�ren Breddam
Cc: MapInfo-L (E-mail)
Emne: Re: MI-L 'Save Workspace As' in my specified path?
On Thu, 2 Sep 2004, S�ren Breddam wrote:
> Another one for you: How do I specify the folder that I want my users to
> save the current workspace in and then let them type in a name of their
own
> choice?
> When I run 'Run Menu Command M_FILE_SAVE_WORKSPACE' the path is not
> unambiguous. I think a user is promted to save a workspace at the last
> folder that has been used by the user or something like that...
> I want them to start in a specified folder (where they are allowed writing
-
> it's also more convenient).
>
> Is that possible? Is there a workaround?
If you're using MapBasic, to get the user
to tell you where s/he wants to store the workspace. If you just want to
have them pick a folder, then that's going to take one or more Windows API
calls.
- Bill Thoen
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 13192
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 13201