Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Flexibility in seth path to
Message
 
To
06/02/2000 17:17:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00328102
Message ID:
00328110
Views:
26
I generally force the user to enter this information when the program is run for the first time.
I use a file or table with one field/record. In the main.prg, if the file doesn't exist, then I run a form requesting them to enter the location of the data files. (If you've got more than one .dbc in the app in different places, then you'd want them to enter those as well).
Once they've entered the info, the form creates the file. In the main .prg I read the file and set the path to whatever they've selected.
I've found this to be the best logic thus far. I've taken it a step further by having the main .prg not only check for the existence of the file, but the validity of the info in it - like checking to make sure the directory exists and that the .dbc file is really there. If not...then it runs the form requesting pathing info again. I did that in case you have a user that re-maps their network drives to different letters or something. If you want 'flexibility' this is a good way to go I think.


>Yes its me again.Sorry if kinda abusing the generosity of the UT people. I don't really have anybody to turn to.
>
>
>How can i make a set path to flexible like if when a default directory
>is changed.
>
>thanks
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform