Helpful Information
 
 
Category: Delphi Programming
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 ?

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.

I am a PHP newbie and have spent the past four or more hours researching how to do some calculations with integers people input into a form using checkboxes. Nothing I try works.
Here is my php file:
<html>
<?php
$years = array("one","two","three",four","five");
$rent = array("fif","twen","tfive","thir","thfive");
$house = $years * ($rent - 900)*12/2;
echo "Using those two time frames and rental amounts, you can most likely afford a house that costs as much as <strong>$house dollars</strong>.";
?>
</html>

Any ideas on how I can manipulate those variables?

PHPWannabe

Thanks for the suggestion, I wish it had worked.










privacy (GDPR)