Login  
Search All Forums
Dart Home | PowerTCP FTP for .NET | Custom Development Reply | PowerTCP FTP for .NET Topics | Forums   
AuthorForum: PowerTCP FTP for .NET
Topic: How to add an array of FTP references?
dries_neyrinck

From: Gent, Belgium
Posts: 4
Member Since: 01/24/03
posted February 19, 2003 12:02 PM

Hi, I want to add an array of FTP references in VB.NET but I need the events (FTP will be used asynchr).
How can I do this?

Private WithEvents FTPNonEOL() As Dart.PowerTCP.Ftp.Ftp is not valid because you can't add WithEvents for arrays
I need the array to build up multiple FTP session (can change dynamically, never bigger than 10) to several systems.
Or is there no possibility and should I define 10 different references?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted February 19, 2003 12:12 PM

Hi,
Please see the following post concerning the AddHandler keyword:
http://support.dart.com/postings?topicid=2821

The code is for the Tcp component, but the same technique could be applied to Ftp.
-ken
dries_neyrinck

From: Gent, Belgium
Posts: 4
Member Since: 01/24/03
posted February 19, 2003 12:53 PM

Thank you very much Ken,
you just saved 4 hours of coding for me.

Dries
Reply | PowerTCP FTP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX