Re: Trying to PutFiles to a remote site - WeOnlyDo Discussion board

Re: Trying to PutFiles to a remote site (General questions)

by Scot Styer, Monday, April 25, 2011, 00:13 (4772 days ago) @ woddrazen

It looks like it's only calling done once, on the putfiles
but, could it be getting called from another event
I'm connecting and executing the following
I guess I'm trying to find the best place to execute the putfiles
and the best place to execute the disconnect
I do have some message statements
in the progress, and loopitem events
the below code seems to only send 1 file

connected event
If ErrorCode <> 0 Then
messagebox('error','stop')
return
end if
p_state = 1
if p_state = 1 then
ole_1.object.putfiles( c: est2 , /sstyer ,0)
p_state = 5
end if

done event
if errorcode <> 0 then
messagebox('error','error message')
close(parent)
return
end if
if p_state = 5 then
ole_1.object.disconnect(true)
messagebox('error', 'finished')
close(parent)
return
end if
messagebox('process','done')

Hi Scot,


Done Even should be fired when PutFiles is finished with execution (when all files are uploaded to server).

Did you received some error maybe inside Done Event? Which version of wodFtpDLX you re using? You can check version using wodFtpDLX Version Property.


Regards,
Drazen


Complete thread: