Re: RadioButton

Posted by Joey p12386 on August 04, 2004 at 22:46:12:

In Reply to: RadioButton posted by Alexandre on August 04, 2004 at 21:13:35:

Use a loop to check all the radiobox's checked value on the screen.

var
  i: Integer;
begin
  for i := 0 to ComponentCount - 1 do begin
    if Components[i] is TRadioButton then begin
      if TRadioButton(Components[i]).Checked = True then begin
       // Code here what to with the checked radiobutton
      end;
    end;
  end;
end;

Joey ^__^


[ DelphiLand FAQ ]