05-03-2009, 09:06 PM
السلام عليكم .
جرب هذا :
جرب هذا :
PHP كود :
uses Math
PHP كود :
var
Form1: TForm1;
RadmIndex : Byte;
Y : Byte = 1;
PHP كود :
procedure TForm1.tmr1Timer(Sender: TObject);
begin
Randomize;
TWinControl(FindComponent('Lbl'+IntTostr(y))).Visible := True;
RadmIndex := RandomRange(1, 6);
TWinControl(FindComponent('Lbl'+IntTostr(RadmIndex))).Visible := False;
y := RadmIndex;
end;


