Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: Problem with Listing
sathya76

From: Lubbock, TX USA
Posts: 13
Member Since: 06/24/02
posted July 10, 2002 3:36 PM

I want to get the directing listing and store each one as a part of the array.


FtpSess.Directory = "''"
FtpSess.Directory = SampleLoc
FtpSess.NameList()
FtpSess.Directory = "''"

ReDim Preserve samples(FtpSess.Listing.Count - 1)

For i = 0 To UBound(samples)
   samples(i) = FtpSess.Listing(i + 1).name()
Next i


I am getting an error in FtpSess.Listing(i+1).name()

It says that, Interface DarFTP list entries cannot be indexed because it has no default properties.

I am using VB.NET in the above case, but when I tried in VB, this problem does not come..

Is there any means to make this function through VB.NET

Thanks
Sathya
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 10, 2002 4:01 PM

Hi,
The following works for me.
Hope it helps,
-ken

Dim i As Integer
For i = 0 To AxFtp1.Listing.Count - 1
  samples(i) = FtpSess.Listing.Item(i+1).Name
Next
sathya76

From: Lubbock, TX USA
Posts: 13
Member Since: 06/24/02
posted July 10, 2002 4:10 PM

Thanks Drake..

Sathya
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX