Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple instances of a form.
Message
 
To
09/02/1999 13:01:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00185591
Message ID:
00185604
Views:
17
>>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 Gelin
Database Developer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform