I have several checkboxes (Checkbox0, Checkbox1, ...) and a binary string (1011).
I want to inspect the string and depending check the corresponding checkboxes.
f, binary: string
For i=0 to 4 do begin
f := 'Checkbox' + inttostr(i);
if binary[i] = '1' then
f.checked := true
f.checked := false;
Of course this gives errors as f is just a string.
How can i tell my program to that f should be handles as the name of the checkbox ??