Visual Basic ne prend pas en compte mon chgt de variable
Il me faut faire :
Code:
1 2 3
| for i = 1 to 9
If Texti = "" then Vi = 0
Next i |
Pour avoir ca :
Code:
1 2 3 4 5 6 7 8 9
| If Text1 = "" then Vi = 0
If Text2 = "" then Vi = 0
If Text3 = "" then Vi = 0
If Text4 = "" then Vi = 0
If Text5 = "" then Vi = 0
If Text6 = "" then Vi = 0
If Text7 = "" then Vi = 0
If Text8 = "" then Vi = 0
If Text9 = "" then Vi = 0 |
Mais ca me donne ca :
Code:
If Texti = "" then Vi = 0
Et ... Texti n'est pas un objet existant.
Quelqu'un aurai une idée ? Un truc à mettre à i, ou devant i ? merci