Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FtpGetFile()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01094124
Message ID:
01094200
Vues:
43
Mark,

Make sure you have terminated the filenames with a chr(0). The last parameter is supposed to be declared and sent by reference.

>hi all,
>i am trying to get ftpgetfile() workin but am having problems. i use the code
>
>FtpGetFile(lhFTPSession, FTPcopyfile, FTPcopyfile, 0, 0, 0, 0)
>
>the first parameter works fine, i use it to put a file. the next two i think are ok.
>the fourth should be true or false but i have 0, if i have .T., TRUE... it kicks up a fuss but 0 works just fine.
>the fifth is a 0, i have also tried this as a 1, and this gives me no errors but on the web i see this constantly as "FILE_ATTRIBUTE_NORMAL" but if i use this i get errors.
>the sixth is the same problem as the fifth, on the web it is often "FTP_TRANSFER_TYPE_BINARY" but this gives errors.
>the seventh seems fine set at 0.
>this code keeps failing on me and i know thats its something small as i had similar problems with the parameter on ftpputfile but i can't get to the bottom of this for the ftpgetfile option. any help very much appreciated at this late hour.
>Slán
>~M
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform