Ok je commence à avancer avec tes conseils.
Par contre lorsque je stock les éléments dans mon tableau je fais de la façon suivante:
Dans mon tableau je n'aurai donc pas les i qui vont se suivre (0,1,2,3, etc...)Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 If chkItem.Checked = True Then TableauString(i, 0) = nom_produit TableauString(i, 1) = langue TableauString(i, 2) = Code_isin TableauString(i, 3) = Date_depart TableauString(i, 4) = Date_fin TableauString(i, 5) = TxtGeneration TableauString(i, 6) = Lbl_num_typeFicheMensuelle TableauInteger(i, 0) = num_produit TableauInteger(i, 1) = num_modele Else Me.LblTest.Text = "ouais ouais 2" End If i = i + 1 Next items
mais plutôt 2,5,45,56 etc ...
Comment je peux faire pour créer ma boucle ? Faire une boucle ou on prend toutes les lignes ?
Car j'étais parti la dessus :
Avec mon i correpondant à ma première boucle.Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 For j = 0 To i num_produit = TableauInteger(j, 0) nom_produit = langue = Code_isin = Date_depart = Date_fin = num_modele = TxtGeneration = Modele = Lbl_num_typeFicheMensuelle = Next j