|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How can I make an array of checkbox
The problem that I have is that i need a big number of checkbox and depend on what you do on the program the number of checkbox are different, so I need an array of checkbox.
How can I do this ? |
|
#2
|
|||
|
|||
|
Code:
var
arr: Array of TCheckBox;
begin
SetLength(arr, 10);
for i:=0 to 9 do begin
arr[i]:=TCheckBox.Create(Self);
arr[i].parent:=Self;
end;
end;
hth, M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > How can I make an array of checkbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|