PCPT
Messages postés13280Date d'inscriptionlundi 13 décembre 2004StatutMembreDernière intervention 3 février 201847 22 oct. 2005 à 18:40
salut,
à ma connaissance, non.
mais rien ne t'empêche de créer tout çà toi-même....
' [VB6]
'
Option Explicit
'
'
Dim aCollection() As Object
Dim lActualColl As Long
'
'
Private Sub Form_Load()
' tu dimentionnes selon ton nombre d'objets
ReDim aCollection(2)
Set aCollection(0) = Form1
Set aCollection(1) = Text1
Set aCollection(2) = Command1
' et tu initialises l'indice à chaque fois. (pas utilisé ici)
lActualColl = 0
End Sub
'
'
Private Sub Command1_Click()
lActualColl = 2
aCollection(lActualColl).Caption = "j'ai cliqué sur le Command1"
End Sub