Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A better set path to...
Message
From
16/04/1998 03:07:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/04/1998 22:10:39
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092371
Message ID:
00092416
Views:
26
>Mr Kirby
>i, sorry but i dont undertand that you traing to explain me .. let me see
>you say that i have to read the unit from the win.ini of the user?
>when you say that i could
>
>> SET PATH TO (oApp.PathTemp)
>tyhis is the way to read the unit of the user? ( i dont know what is > oApp.PathTemp ( any event in VFP)
>>
> USE (oApp.PathTemp + [])
>is this the way to acces a table whatever unit the user has?
>
>i'm sorry again but you know
> i think that my knowledege in vfp 5.0 is not too big like yours
>
>thanks again
>A.M.G
Augusto,
To set paths for your app, I think it's easiest to do it in config.fpw (and editable for multiuser environments w/o recompiling or extra code). Use relative paths rather than fixed so the app dir could be moved w/o need to change it.
*cDrive:\..\AppDir
*cDrive:\..\AppDir\data
*cDrive:\..\AppDir\report
*Config.fpw
path=data;report;
Anyway if you want to do it code then you could use :
set path to data;report       && Again relative paths
* set path to (home()+"data;"+home()+"tools") && Alternative way
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform