Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON SHUTDOWN situation
Message
From
18/10/1997 23:35:32
 
 
To
18/10/1997 21:50:34
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00055289
Message ID:
00055320
Views:
24
>when I have 2 depending forms I always instantiate the "son" as a property of the parent form
>thus closing the parent form also closes the child form (as it goes out of scope)

Any special recommendations in order to make sure the parent will be closed first? I am using something like this right now which is mostly to scan all the forms and taking action on them.
FOR lnCompteur=lnFormCount TO 1 STEP -1
   * We don't do the release for a toolbar or a memo
   IF UPPER(_screen.Forms(lnCompteur).BaseClass)='FORM'
      IF _screen.Forms(lnCompteur).QueryUnload()
         _screen.Forms(lnCompteur).Release()
      ENDIF
      ELSE
      IF lnCompteur=1
         EXIT
         ELSE
         lnCompteur=lnCompteur-1
      ENDIF
   ENDIF
NEXT
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform