1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| While rech.EOF = False
'******* que va-t-il ce passer au second passage ? **************************
MSFlexGrid1.Clear '<= Efface le contenu de la FlexGrid, c'est-à-dire le texte,
'les images et le formatage des cellules.
MSFlexGrid1.TextMatrix(0, 1) = "Nom"
MSFlexGrid1.ColWidth(0) = 0
MSFlexGrid1.ColWidth(1) = 1500
MSFlexGrid1.TextMatrix(0, 2) = "Prénom"
MSFlexGrid1.ColWidth(2) = 1500
MSFlexGrid1.TextMatrix(0, 3) = "C.I.N"
MSFlexGrid1.ColWidth(3) = 1500
MSFlexGrid1.TextMatrix(0, 4) = "Proffession"
MSFlexGrid1.ColWidth(4) = 1500
MSFlexGrid1.TextMatrix(0, 5) = "Date de naissance"
MSFlexGrid1.ColWidth(5) = 1500
MSFlexGrid1.TextMatrix(0, 6) = "Code Puk"
MSFlexGrid1.ColWidth(6) = 1500
MSFlexGrid1.TextMatrix(0, 7) = "Code Postal"
MSFlexGrid1.ColWidth(7) = 1500
MSFlexGrid1.TextMatrix(0, 8) = "Adresse"
MSFlexGrid1.ColWidth(8) = 3000
MSFlexGrid1.AddItem "", t
MSFlexGrid1.TextMatrix(t, 1) = rech![nom]
MSFlexGrid1.TextMatrix(t, 2) = rech![prenom]
MSFlexGrid1.TextMatrix(t, 3) = rech![cin]
MSFlexGrid1.TextMatrix(t, 4) = rech![proffession]
MSFlexGrid1.TextMatrix(t, 5) = rech![jour]
MSFlexGrid1.TextMatrix(t, 6) = rech![codepuk]
MSFlexGrid1.TextMatrix(t, 7) = rech![code]
MSFlexGrid1.TextMatrix(t, 8) = rech![adresse]
t = t + 1
rech.MoveNext '<passe a l'enregistrement suivant
'branchement en debut de While, si rech.EOF = true recommance la boucle
Wend |
Partager