Information générale
Catégorie:
Codage, syntaxe et commandes
>>>>Is there a direct function I can call to see if a form is open inside of an MDI form without going through the forms collection? TIA
>>>
>>>You have to go through the forms collection!
>>>
>>>If you absolutly don't want to, you have to maintain yourself a structure (collection, dictionnary, array, ...) that maybe asked for a particular form.
>>Hmm.. I think an array may come in handy. Thanks for the tip.
>
>I am really curious about this one.
>
>Why maintain an array instead of parsing the forms collection?
Well, the generic MDI form does not have a forms collection, and I wasn't sure about the forms collection parsing all the forms in my app, not just the ones that are visible. The docs say the forms collection has every loaded form. What I want my app to do is if the user clicks on the toolbar or selects a menu item for a form that's already open but not on top, bring it to the front and make it the active form. I already have the window menu set for the window list also. At this time I think either way will do, but for apps that may have several or all of its forms loaded an array might be more efficient.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement