Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default directory
Message
De
27/07/2006 22:59:10
Neil Mc Donald
Cencom Systems P/L
The Sun, Australie
 
 
À
27/07/2006 22:06:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Jet/Access Engine
Divers
Thread ID:
01140942
Message ID:
01140946
Vues:
14
Hi,
Place this in your Main setup prg
   IF _VFP.STARTMODE = 0  && running inside the Visual FoxPro IDE
      lcPath = LEFT(SYS(16,0), RAT("\", SYS(16,0), 2))
      SET DEFAULT TO (lcPath) && Specifies the default drive and directory
      SET PATH TO (lcPath + ";Data\;Forms\;Help\;Images\;Libs\;Menus\;Progs\;Reports\") && Specifies a path for file searches
   ELSE
      lcPath = JUSTPATH(SYS(16,0))
      SET DEFAULT TO (lcPath) && Specifies the default drive and directory
      SET PATH TO (lcPath + "Data\;Help\;Images\") && Specifies a path for file searches
   ENDIF


>Hi
>for some reason, the default dir changes itself so when I open a form at the second time, error no 1 occored and I got rid of it by putting this in the error method
>
>do case
>case nerror = 1 &&&file does not exixt
>set defa to "C:\my document\my project\inventory" &&It is my default dir
>endcase
>
>
>The question is:
>Will this be OK since after I compile this project, and install it in a
>user's computer, this dir is of course not available in the user's dir and only available in my PC.
>So will this be OK??? Thank you.
>
>Regards
>
>Syah N
Regards N Mc Donald
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform