Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I setup, so that users can pick the directory?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00064928
Message ID:
00064956
Views:
33
>>>I am wondering, how I can set up so that users can pick their won default directory?
>>>Basically this is what I would like to do.
>>>
>>>1. Store the database and all tables on the server.
>>>2. Store the executable and all temp files locally. (This would include the forms etc. as well.)
>>>
>>>I am developing an application that will need to work accross an ISDN link to a remote site. I think that I would get the fastest response for the remote user, if I gave them local copies of the executable.
>>>
>>>So I think what I need to know is how do I allow for this to happen?
>>>
>>>I am developing on a stand alone machine at home. Do I set up a table that must be filled at run time, stating paths, etc.
>>>Or is there some foxpro commands that I should be using? (I am not sure how home() etc work. With an executable, home() returns the location of the esl file, which is c:\windows\system on my machines.)
>>>
>>>Any help, enlightenment would be usefull.
>>>
>>>Mike
>>
>>Mike,
>>
>>The easiest way to do this may be via the use of the COMMAND configuration setting. Simply set it similar to:
>>
>>COMMAND = DO myprog.prg
>>
>>In the program have the line
>>
>>SET DEFAULT TO GETDIR()
>>
>>This will bring the the get directory dialog. You might wish to use the parameters to give them an appropriate prompt and perhaps set the directory initially to some default setting.
>>
>>hth,
>>
>>George
>
>Valuable information George and I am not too concerned about showing the directory dialog. I am more interested in doing it under program control. When using setup, it asks you for a directory. Also, how do I have the app. reference the database that is stored on the network server, when during development it was on my local drive?
>
>Mike

This involves adding code to all of your DEs to change the database path of all the cursors in the DE. Changing your program to this design can be quite a bit of work if you have a decent sized app. I think that there is an artcile in the KB here that explains the details of this.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform