Click to See Complete Forum and Search --> : Inet control questions...


Ryanitus
September 23rd, 2001, 12:16 AM
I'm developing a modified FTP program that performs some tasks automatically. I have two Sub-routines back to back, OpenConnection and SendFile. If I comment SendFile, OpenConnection works fine, the connection is opened and the list of items is correctly updated. When I allow both sub-routines to run, OpenConnection no longer works properly. It appears that the program is not waiting for OpenConnection to finish before it starts SendFile. It is complicated also because I am using the Internet Transfer Control and it uses the StateChanged event. Is there a way to make my program wait for the first action to complete then do the second one? Any advice would be appreciated, however helpful you think it might be. Thanks a lot :)

Ryanitus
September 23rd, 2001, 09:54 PM
Answered my own question.

ryan