What is the logic behind the DoneEvent? (wodFtpDLX / wodFtpDLX.NET)
Hi Tony.
Your code should be state driven. You can have your own enumeration of states like
MyState = {SomethingBefore, MakingDirectory, UploadingFile, SomethingAfter....}
and then in Done do
if MyState == SomethingBefore
MyState = MakingDirectory
Ftp1.MakeDir...
else
if MyState == MakingDirectory
MyState = UploadingFile
Ftp1.PutFile (local, remote)
else
if MyState == UploadingFile
MyState = SomethingAfter
Ftp1.Do Something.
endif
so, you end up always in Done, but your 'MyState' variable decides which command to execute.
I hope this helps!
Jasmine.
Complete thread:
- What is the logic behind the DoneEvent? - tonym, 2015-10-06, 06:17
- What is the logic behind the DoneEvent? - Jasmine, 2015-10-06, 08:21