Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control collection for all running forms?
Message
 
 
À
07/04/1999 11:45:53
John Streeter
Wanger Asset Management, L.P.
Chicago, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00206016
Message ID:
00206024
Vues:
18
you have a _screen.formcount property and a _screen.forms() collection. Which leads to _screen.forms(i).name if you do a for i = 1 to _screen.formcount

>Is there a way to access the collection that owns all running VFP forms?
>
>I have a "parent" form that runs "As Top-Level" and several "child" forms that run inside the parent "In Top-Level." Some of the child level forms need to run alone, so I need a way to determine which forms are running.
>
>Initially, I thought that Parent.Controls might contain the child forms. Had this been true, I could have quickly looped through the collection looking for BaseClass = "Form" or whatever.
>
>Next I looked for an application-level collection that contains all forms. The application object seemed a likely suspect ... but no luck there. Couldn't find anything else.
>
>MS indicated that there is a collection containing all forms (evident in the Debugger's Locals window) but this collection is not exposed to the developer via native-VFP code.
>
>Does anyone have any suggestions? Are there any options other than Formsets?
>
>Thanks.
>
>JS
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform