Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
For each doesn't release all forms?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01241310
Message ID:
01241357
Views:
49
>Naomi,
>
>Usually you can not iterate with FOR EACH in any collection while adding or removing items. Your Step - 1 solution is correct, IMO
>
>Also I do not understand why you need PemStatus for Release and QueryUnload, can be any other object other than a form be part of the form collection? I am quite sure the answer is no, right?

Toolbars are also part of _screen.Forms collection.

I think I know what my problem is, I'll try to solve it tomorrow. I need to release active form first. It looks like the toolbar is trying to release first thus I'm having a problem.

These were my thoughts when I was leaving, hopefully I'm right.

Otherwise there should be no difference between for each and looping in the reverse order.
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