FTP_List and FTP_Download live

gapi

Active Member
Licensed User
Longtime User
Why FTP_LIST and FTP_Download processes can't live in the same sub ?

thanks
 

margret

Well-Known Member
Licensed User
Longtime User
They each have their own events that get called as they complete a given action. This would cause them to jump to another sub at that point. They really should not be used in the same sub. Like when you do:

FTP.List("/")

When it completes that action, it will call:

FTP_ListCompleted

Now the control is in the FTP_ListCompleted sub. The Download command does basically the same thing.
 
Last edited:
Upvote 0

gapi

Active Member
Licensed User
Longtime User
thanks margret, then if i want a only one sub for view updates on my ftp and then download it ... I must use two separated subroutines ... two buttons ...

:sign0098: tnx
 
Upvote 0

Jost aus Soest

Active Member
Licensed User
Longtime User
Hint: You never have to write any code two times when you write reusable subs. Just call a sub on every place, where a specific action should run.

But why do you think about "two buttons"?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…