Thanks, I got this code to return the desired output of "12345678910"

code:
break on
$counter = 1
do
$var = "test" + "$counter"
$ = execute("$$$var = $counter")
$counter = $counter+1
until $counter = 11
$test1
$test2
$test3
$test4
$test5
$test6
$test7
$test8
$test9
$test10

Now what I'm trying to use this for is a kixform script. What it's supposed to do is create a box that has a check box for each entry in the test.dat file. Here is what I have.

test.kix
code:
;Script test.kix


$Form = CreateObject("Kixtart.Form")

$Form.Caption = "Modify User Details - KiXtart"
$Form.ScaleHeight = 300
$Form.ScaleWidth = 250
$Form.FontName = "Arial"
$Form.FontSize = 9
$Form.Center

$Topdistance = 20
$nul = open(1,test.dat,2)
$var = readline(1)
do
execute(" $$$var = $form.CheckBox("$var") ")
execute(" $$$var+.Left= 10")
execute(" $$$var+.TabStop= 0")
execute(" $$$var+.Top= $Topdistance")
execute(" $$$var+.OnClick= "chkAccountDisabled_Click()"")
execute(" $$$var+.Enabled= 1")
execute(" $$$var+.Value= 1")
$Topdistance = $topdistance + 15
$var = readline(1)
until $var = ""
close(1)

$cmdExit = $form.CommandButton("Install!")
$cmdExit.FontSize = 12
$cmdExit.FontBold = 1
$cmdExit.Top = 250
$cmdExit.Width = 100
$cmdExit.Left = 75
$cmdExit.OnClick = "Return_to_script()"

$Form.Show


While $quit <> 1 and $Form.Visible
$=Execute($Form.DoEvents)
Loop



Function chkAccountDisabled_Click()
If $chkAccountDisabled.Value = 0

? "Checkbox was not checked"

Else

? "Checkbox was checked"

EndIf
EndFunction

Function Return_to_script()
$quit = 1
EndFunction

In the test.dat
code:
qwerty
asdfgfh
asdfgfgh
wrgdfhhv
sdfhgfhj

Whenever I run the script I get this error.

Script error : invalid method/function call: missing comma !
execute(" $$$var = $form.checkbox("$var") ")

What am I missing here?

I realize that the onclick return will be sporked, but I'm not worried about that for now. I just wast to get the box to pop up.