how about something like this??

Code:

$list = "Const1=2",
"Const2=10",
"Const3=14",
"Const4=1000",
"Const5=400",
"Const6=32",
"Const7=11",
"Const8=84"

BuildConst($list)
? Const1
? Const2
? Const3
? Const4
? Const5
? Const6
? Const7
? Const8


Function BuildConst($constlist)
for each $Const in $constlist
$ = execute('Function ' + split($const,"=")[0] + ' $$' + split($const,"=")[0] + '=' + split($const,"=")[1] + ' endfunction')
;? $const

next
endfunction





Edited by Bryce (2004-05-12 04:52 PM)