Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command window
Message
From
03/02/2002 11:25:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
03/02/2002 10:56:46
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00614537
Message ID:
00614553
Views:
17
>>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform