How fire wodFTPDLX event - WeOnlyDo Discussion board

How fire wodFTPDLX event (General questions)

by Arturo, Wednesday, February 15, 2006, 18:50 (6855 days ago)

How fire wodFTPDLX event

ftp1 is wodFTPDLX for Visual Basic Classic(6.0) Active X

MY program is in Visual Basic .Net 2003

'Code Visual Basic .Net

for i=0 to List.Items.Count - 1

Ftp1.Connect()

Next i

'This Sub call to Ftp1_Connected but do this until my loop end.
'***** I need execute the Ftp1_Connected when i am inside to the loop not at end *****

Private Sub Ftp1_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String) Handles Ftp1.Connected

[:doh:]

Re: How fire wodFTPDLX event

by wodSupport, Wednesday, February 15, 2006, 18:55 (6855 days ago) @ Arturo

Arturo,

do you use Blocking property set to True?

What exactly are you trying to do with that code? Connect one instance of wodFtpDLX to more than one FTP server? This will not work, you must use more than one instance of wodFtpDLX in that case.

Kreso

Re: How fire wodFTPDLX event

by Arturo, Wednesday, February 15, 2006, 19:07 (6855 days ago) @ wodSupport

Arturo,

do you use Blocking property set to True?

What exactly are you trying to do with that code? Connect one instance of wodFtpDLX to more than one FTP server? This will not work, you must use more than one instance of wodFtpDLX in that case.

Kreso

Thanks this is my error
!!! Connect one instance of wodFtpDLX to more than one FTP server ¡¡¡

Re: How fire wodFTPDLX event

by Arturo, Wednesday, February 15, 2006, 20:38 (6855 days ago) @ Arturo

¿ Do you have same example processing many servers ?

i finish my program, its works fine

my program processing many servers ftp simples and ftp secures

but may be you have same solution more elegant

don´t matter if the code is visual basic 6.0

Re: How fire wodFTPDLX event

by wodSupport, Wednesday, February 15, 2006, 20:42 (6855 days ago) @ Arturo

Arturo,

no, sorry, we don't have such code. I'm not sure what would 'processing' mean since it really depends on your specific task you want to accomplish.

But if your code works ok - great! I'm sure there are 1000 ways to acoomplish it anyway.

Best regards,
Kreso