Tema: checkbox
Ver Mensaje Individual
  #4  
Antiguo 06-04-2008
Avatar de ixMike
ixMike ixMike is offline
Miembro
 
Registrado: feb 2004
Posts: 1.151
Reputación: 22
ixMike Va por buen camino
Podrías hacer algo así:

Código Delphi [-]
for n:=0 to Form1.ControlCount-1 do
  begin
  If Form1.Controls[n].ClassName='TCheckBox' then
    begin
    //...
    ParamByName('BOTON').asstring := (Form1.Controls[n] as TCheckBox).caption;
    ParamByName('checked').asinteger := ifThen((Form1.Controls[n] as TCheckBox).checked,0,1)
    end;
  end;



Salu2.
Responder Con Cita