Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFullPathName
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
GetFullPathName
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00999402
Message ID:
00999402
Vues:
92
If I run this code, when it invocates GetFullPathName that produces an error "Too many arguments" and I don't know why

DECLARE INTEGER GetFullPathName IN WIN32API kernel32;
    STRING    lpFileName,;
    INTEGER   nBufferLength,;
    STRING  @ lpBuffer,;
    INTEGER @ lpFilePart

lpFileName = "foxuser.dbf"
nBufferLength = 250
lpBuffer = SPACE(nBufferLength)
lpFilePart = 0
    
lnResult = GetFullPathName (lpFileName, nBufferLength, @lpBuffer, @lpFilePart)
IF lnResult > 0 And lnResult <= nBufferLength
    lpBuffer = Left(lpBuffer, lnResult-1)
    ? lpBuffer
ENDIF
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform