Activé

erick33 - 14 déc. 2000 à 05:56
 Makabey - 15 déc. 2000 à 05:28
j'ais créé un compte a rebour et voudrais lui faire comprendre qu'a 0 il passe au form2.
comment faire avec if then end if ?
merci.

4 réponses

comment t'as fait ton compte a rebours !!!!
0
-------------------------------
Réponse au message :
-------------------------------

comment t'as fait ton compte a rebours !!!!

-------------------------------
Réponse au message :
-------------------------------

j'ais créé un compte a rebour et voudrais lui faire comprendre qu'a 0 il passe au form2.
comment faire avec if then end if ?
merci.
-------------------------------
-------------------------------
0
un timer,un label
et j'ais mis ,t=5
t=t-1
je voudrais mettre if t=0 then.....pour le faire passé au programme initial.
0
5 millisecondes?

Le timer compte en millisecondes, donc pour un décompte de 5 secondes tu mettra Timer.Interval=1000 pour un événement par secondes, ensuite dans l'événement Timer utilise plutôt
If t >= 0 then
form2.show 'ou peu importe...
end if

bien sûr tu dois garder ton compteur t qui passe de 5 à 1.
0
Rejoignez-nous