Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A better set path to...
Message
De
15/04/1998 22:00:48
 
 
À
15/04/1998 21:37:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00092371
Message ID:
00092379
Vues:
21
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)-
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform