I'm loading a serverlist from a csv (see this thread), and need to create checkboxes from an array called $serverGroups. I've tried something like this:
Code:
CreateCheckboxes($serverGroups)
Function CreateCheckboxes($boxes)
For Each $item In $boxes
logLine($item)
execute ('$$item = $Form.Controls.CheckBox()')
execute ('$$item.CheckState = 0')
execute ('$$item.Left = 12')
execute ('$$item.Text = "$item"')
execute ('$$item.Top = 150')
execute ('$$item.OnClick = logLine("blah")')
Next
EndFunction


but that doesn't quite do it :P

any suggestions?