Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cute FTP & VFP9
Message
 
À
15/03/2006 16:08:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Divers
Thread ID:
01104694
Message ID:
01104698
Vues:
14
>Hi all.
>This is sort of interesting...
>I am running some Visual FoxPro script that up/downloads
>some files using CuteFTPPro. Works perfect. I discovered that when I issue (is) Object.IsConnected
>the return value is numeric (not boolean like it would be if I ran VBscript)
>The value is -1 or 0. Either way files transfer sucessfully - I INSERT INTO my LOG file the results.
>IF !empty(Object.isconnected)
> m.desc = "CONNECTED OK"
>ELSE
> m.desc = "NOT CONNECTED"
>ENDIF
>
>What the heck is up with that. Usually -1 is failure.
>Some how my script is indicating "CONNECTED OK" ?

Ususaly in C++ 0 is false and everything different than zero is true :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform