J'aimerai appeler une fonction avec un element d'une collection de champ texte.
Par exemple, j'ai un champ texte qui s'appelle txtChamp
et qui a 3 element : txtChamp(0),txtChamp(1),txtChamp(2)
Voici un exemple de fonction
sub test(txt as TextBox)
txt.text="bonjour"
end sub
Si j'appelle cette fonction avec un autre champ texte qui ne fait pas partie d'une collection, par exemple txtTest, la fonction marche.
ex : test txtTest
Par contre, si je fais : test txtChamp(0)
une erreur survient
J'aimerai donc savoir comment faire pour passer mon champ qui comporte un index en parametre de cette fonciton
merci