Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dealing with dangling reference
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01539074
Message ID:
01539088
Views:
40
>>>>>>>>You can not use FOR EACH oForm loop
>>>>>>>>if you're closing the forms (removing from the collection). You need to use FOR loop starting from the last form. Please check again the FAQ.
>>>>>>>
>>>>>>>Just to be sure, you are suggesting the code example written by Nick Necliodov, right?
>>>>>>
>>>>>>I like more the very first sample with the QueryUnload check.
>>>>>
>>>>>I have added the QueryUnload check to the Nick's routine. The very first sample does not seem to be looping starting with the bottom (as you suggested). This threw me off.
>>>>
>>>>Right, but it is another way of looping.
>>>
>>>The good thing is that with the change I am not getting the error. Thank you!
>>
>>You're welcome. I made that mistake (for each ..) once myself.
>
>Now I don't feel so bad myself :).

Re: For each doesn't release all forms? Thread #1241310
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform