Ver Mensaje Individual
  #20  
Antiguo 13-07-2008
[coso] coso is offline
Miembro Premium
 
Registrado: may 2008
Ubicación: Girona
Posts: 1.678
Reputación: 0
coso Va por buen camino
Código Delphi [-]
 
procedure TForm1.ComPortRxChar(sender : TObject; count : integer);
var 
     str : string;
begin
        ComPort.ReadStr(Str, count);
        if (Str = #1) and CheckBox1.Checked then
        begin // << este begin
              Timer1.Interval := (VRNum.Value * 1000);
              Timer1.Enabled := true;
        end  // << no ;
        else
        if (str = #1) and not CheckBox1.Checked then
             Shape2.Brush.Color := clLime;
end;
Responder Con Cita