Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Defaults and Paths on App Startup
Message
From
08/12/2005 06:42:55
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01076049
Message ID:
01076074
Views:
21
>Im after some advice about my program startup. I have tables stored in 3 different locations in which users will access in my application. I have use the SET PATH command to state the locations to where these tables are. But when I try to open the table it looks at the default location and say it cant find it. Can anybody please advise me on how I should use SET DEFAULT and SET PATH in my application.
>
>When the user logs in I create a user home directory store in a profile directory. Should I be setting the SET DEFAULT to this for each user?
>
>Many thanks

Neil

You're not overwriting already stored path with new ones are you? If I've to add a path to the set path then I always store the existing and add to it. e.g.

lcPath = SET( "Path")
Set Path to &lcPath + ";" + {new path string}

HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform