problema timer
Publicado por tatiana (2 intervenciones) el 01/10/2005 00:00:12
procedure TForm1.btnGirarClick(Sender: TObject);
var
corre, tiempo, Segundos: integer;
begin
if (StrToInt(Edtapuesta.text) = 0) then
showmessage('Tiene que apostar sus creditos')
else
timer1.Enabled:= true;
corre:= 1;
//showmessage('Usted aposto' );
if corre = 1 then
for Segundos := 1 to 50 do
if Segundos = 10 then
timer1.Enabled:= false;
end;
tengo este codigo, y lo que intento hacer es que en caso de que si tenga un credito en su apuesta, se dispare el timer,el cual ya tiene un proceso que le he indicado, Y LUEGO DESPUES DE UN TIEMPO ESTE PROCESO QUE TIENE EL TIMER SE DETENGA,
var
corre, tiempo, Segundos: integer;
begin
if (StrToInt(Edtapuesta.text) = 0) then
showmessage('Tiene que apostar sus creditos')
else
timer1.Enabled:= true;
corre:= 1;
//showmessage('Usted aposto' );
if corre = 1 then
for Segundos := 1 to 50 do
if Segundos = 10 then
timer1.Enabled:= false;
end;
tengo este codigo, y lo que intento hacer es que en caso de que si tenga un credito en su apuesta, se dispare el timer,el cual ya tiene un proceso que le he indicado, Y LUEGO DESPUES DE UN TIEMPO ESTE PROCESO QUE TIENE EL TIMER SE DETENGA,
Valora esta pregunta


0