Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Identify a form with multiple instances
Message
 
À
16/07/1998 22:28:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00118430
Message ID:
00118436
Vues:
19
>>>I'm building a new form manager.
>>>If I fire up a form multiple times, what is unique about each instance that gives me a "handle" to each one? The form.name isn't unique is it?
>>
>>Yes, that's why there is that NAME varname LINKED option when issuing DO FORM for handling purposes. If varname is out of scope the form releases.
>
>Let's say I fire up a form from the timer event of a timer. I can't use NAME varname LINKED because varname will go out of scope straight away. I want to use an array in a form manager class to store the form reference along with other stuff - so how do I keep the form alive and keep a unique reference to it?


Try to declare PUBLIC VAR intended for FORM handling, say pvCurrentWindow, then assign a unique reference into it at ACTIVATE EVENT of the FORM.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform