Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to execute the release-routines of all open forms
Message
 
To
21/09/1998 17:23:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00139245
Message ID:
00139277
Views:
25
Of course, if a form won't release for some reason, you'll be caught in an infinite loop. Something like this works better...

FOR lnI = _SCREEN.FormCount TO 1 STEP -1
IF TYPE("_SCREEN.Forms(1).Name") = "C"
_SCREEN.Forms(1).Release
ENDIF
NEXT

IF _SCREEN.FormCount > 0
* Something went wrong, probably a circular object reference
* between forms or an open transaction or something.
ENDIF
Mike Feltman

F1 Technologies
Previous
Reply
Map
View

Click here to load this message in the networking platform