[VB6] faire référence à un objet situé sur un autre form
bonjour je voudrai utiliser dans une fonction un control INET
la fonction est lançée par un autre formualaire que celui possédant le INET et je ne sais pas comment y faire référence voici ce que j'ai fait pour l'instant
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Public Function existFileFtp(ByVal PassFtp, _
ByVal LogFtp, _
ByVal IpFtp, _
ByVal szDossier, _
ByVal szFile)
Dim dirtxt As String
Dim tform As scrutation
With tform.Inet1
.URL = IpFtp
.UserName = LogFtp
.password = PassFtp
.Execute , "dir " & szDossier 'lit le dossier
End With
Do Until tform.Inet1.StillExecuting = False 'boucle pendant inet actif
DoEvents
Loop |
scrutation étant le nom du formulaire ayant le INet
pour l'instant ca ne fonctionne pas :-( une âme charitable pour m'aider ?