Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A better set path to...
Message
From
15/04/1998 22:00:48
 
 
To
15/04/1998 21:37:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092371
Message ID:
00092379
Views:
20
Augusto,

Normally you want to soft-code the drive letter and the base
subdirectory. One method of doing this is using a Win.Ini file.
You read from the start-up directory and then set a property
if your application object to specify the base path.

Then you could
SET PATH TO (oApp.PathTemp)

or

USE (oApp.PathTemp + [])

-myron kirby-
myronk@flash.net
--------------------------------------------------------------------
>Hi all
>
>When i create an application i start to run it usin a program
>MAIN.PRG.
>i this program i use a line like this below(to search the files)
>
>set path to C :\TABLES ;\ROUTINES :\ETC :
>
>but wath happend when a user urun the program from some unit like d:
>or G: (or wathever) it appear an error in the application.
>
>what is the better Tip to path the rute of the files to take that any user run it whatever her unit?
>
>
>thanks
----------------------------------
-myron kirby (mkirby2000@gmail.com)-
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform