Oh my ! I think this statement breaks the world record for the most consecutive number of required double dollar signs. Insert this UDF into your script:
code:
Function chkAccountDisabled_Click($counter)
If $counter <> 0
$=open(1,test.dat,2)
$counter2 = 0
do $var=readline(1)
$counter2 = $counter2 + 1
until $counter = $counter2
$=close(1)
Else $counter = 0
? "Error in counter"
EndIf
$n = Execute('
If $$$var.value = 0
? "$$$$$var Checkbox was not checked" ; <--- LQQKIE
Else
? "$$$$$var Checkbox was checked"
EndIf
')
EndFunction
Here's a link to a control array script:
Kixforms: KixMenu - Dynamically build button menus from INI configuration files
You might want to think about using INI files for this project, that way, you could store extra info about each checkbox (install) in there as well.
-Shawn
p.s. Why so many $ signs ? Because the string is evaluated twice. Once by execute, then once as it gets piped to the console - thats my story and I'm sticking to it !
[ 11 May 2002, 01:25: Message edited by: Shawn ]