>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.