Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect if a form is already open?
Message
De
04/12/2005 14:01:07
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, Royaume Uni
 
 
À
04/12/2005 13:45:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Novell 5.x
Database:
Visual FoxPro
Divers
Thread ID:
01074732
Message ID:
01074745
Vues:
27
Hi Michel,

Sorry for lack of clarity. This is the code:
if wexist("hugform")=.T.
       hugform.release()
endif
gives the error

1923 object HUGFORM is not found

wexist("hugform") does evaluate to .T., but the object can't be referenced.

Although wexist() treats a form as being a Window, "deactivate window" doesn't seem to work for closing forms.

Maybe Vladimir's class method is the only way to do this, but I'm not used to OOP, so this is non-intuitive for me!

Cheers

John
Dr. JW Faithfull
Curator in Geology
Hunterian Museum
University of Glasgow
Glasgow G12 8QQ
Scotland
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform