>>>I'm trying to add SSH FTP ability to my VFP app. I've tried a couple of things....
>>>
>>>One is the curl32 one - but I can't seem to get it to work...
>>>
>>>The other one is this:
>>>
http://www.example-code.com/foxpro/sftp_uploadFile.asp>>>
>>>On the second one...this one of code:
>>>lcHandle = loSftp.OpenFile("hamlet.xml","writeOnly","createTruncate")
>>>seems to be my problem - for some reason lcHandle returns nothing.
>>>
>>>Does anyone have some code that actually works?
>>And what are the message?
>>The example has this:
>>
>>lcHandle = loSftp.OpenFile("hamlet.xml","writeOnly","createTruncate")
>>IF (lcHandle = NULL ) THEN
>> =MESSAGEBOX(loSftp.LastErrorText)
>> QUIT
>>ENDIF
>>
>
>No error message, but lcHandel = "" always. (blank)
What about this test?
lcHandle = loSftp.OpenFile("hamlet.xml","writeOnly","createTruncate")
IF EMPTY(NVL(lcHandle,""))
=MESSAGEBOX(loSftp.LastErrorText)
QUIT
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.