Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I setup, so that users can pick the directory?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00064928
Message ID:
00064934
Vues:
37
>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
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform