Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this variable?
Message
 
À
08/08/2003 17:42:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00818431
Message ID:
00818475
Vues:
24
>>Your FOR EACH...ENDFOR creates and uses its own copy of the lo var, not the one from your Local declaration.
>
>Huh? That doesn't make sense. If you fail to declare the variable as local, it will be private. Nothing more.


Duh, I don't know what I was thinking.

You are correct, but I have experienced something similar to his orignial two examples before.

The second method where the hit is being returned via a separate memory variable solved the problem. The lo variable was not an object when the exit from the FOR EACH occured.
Tom

Life happens, don't blink.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform