Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting current directory
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Divers
Thread ID:
01431715
Message ID:
01431739
Vues:
60
>I have a part of a program which seems to work fine on everyone's machines, but it won't work on the XP machine on which I am typing this post.
>
>My code was something like:
>
>
>IF FILE(CURDIR() + "DEV.TXT")
>  .lDeveloper = .T.	&& Means that the developer file was found. Developer gets more menu choices.
>ELSE
>  .lDeveloper = .F.	&& Normal User logging in at his workstation.
>ENDIF
>
>
>I use this to turn on a menu item to "Exit to the FoxPro" desktop from a running program, otherwise, the whole program quits to the Windows Desktop.
>
>I see that the first condition turns out to be FALSE. IF FILE(CURDIR() + "DEV.TXT")
>
>The value is "\DEV\IVF_ADV\DEV.TXT" but perhaps the drive letter also needs to be there?
>
>There is a file called DEV.TXT in that specific location, but perhaps because the drive letter doesn't show, the FILE() function may fail.

What does

? ADIR(adevfile,CURDIR()+"DEV.TXT") > 0

return?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform