Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command window
Message
De
03/02/2002 11:25:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
03/02/2002 10:56:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00614537
Message ID:
00614553
Vues:
18
>>>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform