Why does the following work? Maybe I stayed up too late night and just can't think straight, but why isn't "$" redefined and fail on the next iteration.

Code:
 for each $ in split($) 


Code:
$="1 2 3 4 5"
? Vartypename($)
? $
for each $ in split($)
? $
? Vartypename($)
next
? Vartypename($)
? "$$="+$


The original value of "$" is set to Empty after the loop.


Edited by Howard Bullock (2006-07-22 05:16 PM)
_________________________
Home page: http://www.kixhelp.com/hb/