Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fullpath() Returning Incorrect Path
Message
De
05/11/2001 16:42:16
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00577485
Message ID:
00577628
Vues:
21
>>Sergey,
>>
>>Okaaaaay... So, if the file doesn't exists then FullPath() returns the default directory? That's useful... :-\ I would think returning an empty string would make more sense. Oh, well...
>>
>
>On other hand this FULLPATH() behavior offers easy way to save current foxpro directory
lcSaveDefDir = FULLPATH("")
>SET DEFAULT TO (lcNewPath)
>...
>SET DEFAULT TO (lcSaveDefDir )
>
I use it all the time.

My two favorite tricks are Set("Directory") which returns the current directory without the final backslash, and Fullpath(curdir()) which does the same, with the backslash.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform