Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET PATH PROBLEM
Message
De
19/08/1999 17:58:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
SET PATH PROBLEM
Divers
Thread ID:
00255565
Message ID:
00255565
Vues:
44
VFP 6.0 does a weird inconsistent trucation of paths in Win 98 but not NT 4.0:

The Following code illustrates it
CLEAR
?"On Win 98 the following path command takes."
?"The entire path is accepted --including "
?"The redundant 'C:\MMORTALS\COMMON30\INCLUDE'"
?"which appears a second time as specified."
SET PATH TO DATA, LIBS, PROGS, INCLUDE,  GRAPHICS, HELP, ;
MENUS, METADATA, REPORTS, ;
\MMORTALS\COMMON30\LIBS, ;
\MMORTALS\COMMON30\PROGS, ;
\MMORTALS\COMMON30\UTILS, ;
\MMORTALS\COMMON30\GRAPHICS,;
\MMORTALS\COMMON30\INCLUDE,;
I:\DEVELOPMENT\DATA\MAIN, ;
\MMORTALS\COMMON30\INCLUDE

*C:\MMORTALS\COMMON30\UTILS
?
?
?SET("PATH")
?
?
?"But drop the redundant 2nd dir and the path is truncated."
?"all the way back to '\MMORTALS\COMMON30\GRAPHICS'."
?"It is (of coure) the string length not the contents."
?"Any expression of the same length can be substituted for"
?"the final directory. Changing the lengths of other"
?"directories sometimes cause truncation, sometime not."
?
?
SET PATH TO DATA, LIBS, PROGS, INCLUDE,  GRAPHICS,;
MENUS, METADATA, REPORTS, ;
\MMORTALS\COMMON30\LIBS, ;
\MMORTALS\COMMON30\PROGS, ;
\MMORTALS\COMMON30\UTILS, ;
\MMORTALS\COMMON30\GRAPHICS,;
\MMORTALS\COMMON30\INCLUDE,;
I:\DEVELOPMENT\DATA\MAIN
?SET("PATH")
Note that the above code will accept all paths given in windows NT 4, but not in 98 or Windows 2000
Thanks

Gar W. Lipow
Répondre
Fil
Voir

Click here to load this message in the networking platform