does anyone concur with me that the following test script produces abnormal behavior?

code:
$a = "1~2"
$i=$a
gosub A
$a=$i
for each $x in $a
? "'$x'"
next

;Only 'return' works. Try using 'exit' and 'quit'
;exit
;quit
return

:A
$i=split($i,"~")
return

When using either "exit" or "quit", the following error occurs.
quote:
ERROR : Error in expression: this type of array not supported in expressions.!


[ 24. May 2003, 00:43: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/