>>>This is Command window. How a var. can run out of scope?
>
>seems to me that when you select more than two line in command window, it does an implicit "generates a PRG and execute it"... well, it´s weird, but it´s the only conclusion I´m coming up right now... :)
Yes, that is exactly what happens. A temp PRG is created, and variables can, and usually do, get out of scope.
To test this assumption, write some invalid code in the command window, for instance (error on first line):
for i = 1 to
? i
next
select it, press ENTER, choose "suspend", and go to the debugger.
You will see the name of a temp PRG in the title.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)