Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this variable?
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00818431
Message ID:
00818475
Views:
23
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform