Hi, i am trying to get my application to check, which radiobutton is selected, and then perform instructions based on the selection.
but i cant seem to use a IF and ELSE procedure to do this, can somebody help me out as to what procedure i should use.
With a Radio group of RG, with 2 radio buttons Radio1 and Radio2 entered in the RG. items property.
Do a Radiogroup on click event and put in the following:
procedure TForm1.RGClick(Sender: TObject);
begin
CASE RG.itemindex OF
0 : { Do something }
1 : { Do Something else }
End;
end;
Alternatively you could trigger the case statement on the press of an apply or OK button.
Hope that helps
PQ