On the other side this confuses me a bit :



break on
$ = setoption("Explicit","on")
Global $a$e

$a = 1,2,3,4

$ = test($a)

"back in main : " ?
"$$e = " + $e ?

get $


function test($a)
    "in udf :" ?
    for each $e in $a
        "$$e = " + $e ?
    next
    "end of udf" ? ?
endfunction



If i Ergo correctly the local forced scope in 'for each' loops weighs more than Global scope

[ 26. February 2003, 16:38: Message edited by: jpols ]
_________________________