Thanks for a code.I carbon copied the code. But I came across 'ACCESS VIOLATION'. I need to rework.
Quote from: ariben on November 17, 2023, 03:40:15 pmThanks for a code.I carbon copied the code. But I came across 'ACCESS VIOLATION'. I need to rework.Code: Pascal [Select][+][-] //Somewhere above Const Oprt1:Array[0..2] Of String=('AND','OR','AND NOT'); procedure TForm1.RadioGroup1Click(Sender: TObject); begin If RadioGroup1.ItemIndex>-1 Then Edit1.Text := Oprt1[RadioGroup1.ItemIndex]; // added end;
HiHave you by any chance, more radiobuttons than slots in your array?!?The count of both must match.Regards Benny