Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cute FTP & VFP9
Message
 
To
15/03/2006 16:08:16
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01104694
Message ID:
01104698
Views:
19
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform