Ok, I got 5 minutes of spare time and started a test session with vars inside execute() - strings.

Actually did run immediately into (imho) unsolvable trouble with NoVarsInStrings Option on

(The code was half stolen from one of Richards replies here : Combine Variables)

grrrr ... HTML is disabled [Mad]

code:
break on

dim $c, $out
;$ = setoption("NoVarsInStrings","on")
$n = 1
$c = 1
$s1 = "string " + $n
$s2 = "string 2"
$s3 = "string 3"
$out = ""

while execute("exit vartype($$s" + $c + ")")
$ = execute("$$out = $$s" + $c)
$out ?
$c = $c + 1
loop

get $

Challenge : Try to get this to run if you uncomment the setoption() .. line [Eek!] [Eek!] [Eek!]

J.

[ 20. February 2003, 14:51: Message edited by: jpols ]
_________________________