Re: wodFtpDLX - GetFiles and LoopItem - WeOnlyDo Discussion board

Re: wodFtpDLX - GetFiles and LoopItem (General questions)

by david.didonato, Thursday, July 21, 2005, 16:49 (7064 days ago) @ wodSupport

thanks

i change it to a class >> function...but the last problem....

here my source code:

******
Function FTP_GetFile() As Boolean

FTP1.GetFiles C:TEMP , /

FTP_GetFile = True

End Function

Private Sub Ftp1_LoopItem(LocalFile As String, RemoteFile As String, ByVal ItemType As wodFtpDLXComLib.DirItemTypes, Skip As Boolean)
If ItemType = typeDirectory Then
Skip = False
Else
If Right$(RemoteFile, 4) = .txt Then
Skip = False
Else
Skip = True
End If
End If
End Sub
******

now it fired the event loopitem, but i didn't get FILES ?? why ??
anything missing ??

thx
david

Create new class, at the top declaration add [code]Dim WithEvents Ftp1 as wodFtpDLXCom[/code] and then in class_initialize do [code]Set Ftp1 = new wodFtpDLXCom[/code] you should see now 'Ftp1' on dropdown combo as list of objects in the class. You will also have list of events for it.

Hope it helps.


Complete thread: