Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check for duplicate forms?
Message
 
À
25/03/1997 23:49:28
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00025616
Message ID:
00025631
Vues:
28
>>>If I want to open the same form multiple times in my app, how do I check for the existence of a previously opened form? I want to set the window title (caption) to MyForm#1, MyForm#2, etc. and offset each window so they dont open directly on top of one another.
>>
>>You can try to use WEXIST("MyForm#1")
>>Also look at Tasmanian Traders sample, it is implemented there also.
>>
>>Nick
>Been there.. Done that...
>I created the form as an object from the form designer. WEXIST returns .f. FoxHelp says that it only works for windows created by DEFINE WINDOW...

You can use: if type('object') = 'O' and !isnull(object), then object exists for this...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform