Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Blocking multiple copies of a form
Message
De
27/12/1997 06:49:38
 
 
À
19/12/1997 19:15:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00067335
Message ID:
00068063
Vues:
31
Hello Bob!

I use the followings:

if !wexist(<>)
this.frmMyForm=CreateObject( ...)
if type("this.frmMyForm")="O" and !ISNULL("this.frmMyForm")
* no errors during instanting
this.frmMyForm.Show()
endif
else
activate window <>
endif


To ensure, that the name is unique, I make the form name from titlecaption in Init event:
thisform.Name=strtran(alltrim(thisform.Caption)," ","_") && changing spaces to _

BB

>Each time I select a form from my application's menu, a copy (or additional copy) is displayed on my screen. My menu commands for each form in the system look like "do form FormName"
>
>Instead, I want a form selection from the menu to set the focus to the running copy (if a copy is currently running), or to start a new copy of the particular form if it is not currently running. I don't want two copies of the same form running at the same time. How do I accomplish this?
>
>Bob Cassady
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform