Ver Mensaje Individual
  #2  
Antiguo 22-12-2009
jorge82 jorge82 is offline
Baneado
 
Registrado: jun 2005
Ubicación: Mérida, Yucatán, México
Posts: 75
Reputación: 19
jorge82 Va por buen camino
A ver si así te sirve:
Código Delphi [-]
for I := ControlCount-1 downto 0 do
    if Controls[i] is TComboBox then
    begin
      if TComboBox(Controls[i]).Text = '' then
        TComboBox(Controls[i]).Color := clRed;
    end
    else if Controls[i] is TEdit then
    begin
      if TEdit(Controls[i]).Text = '' then
        TEdit(Controls[i]).Color := clRed;
    end;
Saludos.
__________________
Un saludito.
Responder Con Cita