Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to set the starting path?
Message
From
14/01/2005 17:56:51
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
00977105
Message ID:
00977394
Views:
21
Hi, Peter

I'm sorry to interfeer, but I want to ask you to explain this a little. I'm not sure it will work - the icon can have Working Directory set to something else. So, doubleclicking it will launch the exe in the directory set by the icon. In that case, CURDIR() will point God knows where.

What about gcStartupDir = Sys(5) + JustPath(Sys(16))?

Thank you.

>
>BTW, put this somewhere on top of your main program::
private gcStartupDir
>gcStartupDir = sys(5) + curdir()
Grigore Dolghin
Class Software.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform