Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple instances of a form.
Message
De
09/02/1999 13:26:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00185591
Message ID:
00185610
Vues:
16
>>>Hi
>>>
>>>I am working on enhancing my application framework. I want to add an ability to restrict a number of instances of a form. For example, one form can have only one instance, another - three.
>>>
>>>What are possible solutions of the problem ?
>>>
>>>Sincerely.
>>
>>Usually, frameworks contain specific object (form's manager) which is responsible for handling (opening, closing, etc.) forms. Usually, form manager keeps all form references in one common collection, but sometimes it's reasonable to have separate collection, e.g. in your case you may keep refs to multiple instances of the same form in separate collection, and check number of element in this collection: if it equals to three you stop instanciating.
>
>Hi Ed,
>
>Is it reasonable to have a cursor (FormName, Number_of_Instances, Already_Instanciated) to solve the problem? Or you know another solutions.
>
>Sincerely.

Igor,
Another solution is collection.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform