Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFullPathName
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00999402
Message ID:
00999596
Vues:
45
Hernan,

Can't you use FULLPATH() inside of VFP? GetFullPathName() doesn't do any lookups it just does basically:
SYS(5) + CURDIR() + lcFileName
FULLPATH() does the same thing except it DOES search along the Fox path to try and find the file. If you only want GetFullPathName() functionality then using the code above is easier and doesn't require API calls.

The other caveat is that FULLPATH() may return a string if the file doesn't exist so you may have to double check with FILE() after FULLPATH has returned.

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform