Label dans un for genre labe(x+i)

cs_Darkukai Messages postés 38 Date d'inscription vendredi 27 septembre 2002 Statut Membre Dernière intervention 29 mai 2006 - 22 avril 2003 à 15:38
cs_Darkukai Messages postés 38 Date d'inscription vendredi 27 septembre 2002 Statut Membre Dernière intervention 29 mai 2006 - 22 avril 2003 à 16:46
bonjour tout le monde
j'aurais aimé savoir s'il était possible de faire çà :

j'ai trois label : label1,label2,label3

for i = 1 to 3
label(i).caption = tableau(i)
next i

?????? ?????? ???????

le mystère va t'il être résolu

en tout cas merci d'avance de votre aide
et joyeuses pâques à tous

Darkukai

3 réponses

stevebelgium Messages postés 180 Date d'inscription lundi 17 mars 2003 Statut Membre Dernière intervention 7 juin 2003 1
22 avril 2003 à 15:51
sorry english ...

add a label , textbox , combobox,.... to a form

PROPERTIES :

NAME = Txtipunt
index = 0 <= IMPORTANT !

we are going to create 2 new labels

Txtinput(0) = already created
Txtinput(1) = NEW
Txtinput(2) = NEW

run this code :

Private Sub Command1_Click

dim intcount as integer
For intCount = 1 To 2

Load Txtinput(intCount)

Txtinput(intCount).Top = Txtinput(intCount - 1).Top + 495

Txtinput(intCount).Left = Txtinput(intCount - 1).Left

Txtinput(intCount).Visible = True

Next

End Sub
0
cs_Darkukai Messages postés 38 Date d'inscription vendredi 27 septembre 2002 Statut Membre Dernière intervention 29 mai 2006
22 avril 2003 à 16:23
you don't need to scuse yourself ,
nobody is perfect :)

thx a lots for this code
i test him immediatly

good afternoon
bye
0
cs_Darkukai Messages postés 38 Date d'inscription vendredi 27 septembre 2002 Statut Membre Dernière intervention 29 mai 2006
22 avril 2003 à 16:46
it works perfectly
THX
0
Rejoignez-nous