Hi There
I'm putting together a kixform that sets allow/deny logon hours for a group of students in AD.

I need to be able to cycle through 25 checkboxes on a kixform and action a function call whenever a checkbox is ticked. The boxes are named $CheckBox1 to $CheckBox25. Is it possible to convert a string into a variable name? If so, how?

For example, it would be nice to be able to do:

Code:

for $day = 1 to 5
for $period = 1 to 5
if somefunction('$$' + 'CheckBox' + Val(5*$day + $period - 5) +'.value') <> ''
action()
endif
next
next



But I'm not sure if "somefunction" exists or even if this is possible?

Can someone offer any ideas?

Cheers