Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wexist() function is not stable ?
Message
 
À
14/03/2007 00:32:17
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01203252
Message ID:
01203502
Vues:
12
Hee,

An alternative could be to have a property, in the image object, or in the form or even in the _Screen or _VFP references to hold a reference to your Opening form, for example, if using the Image object
* In the init
this.AddProperty('oOpeningForm', null)

* in the Destroy
this.oOpeningForm = null

* and in the click

if not isnull(this.oOpeningForm)
	this.oOpeningForm.Show()
	this.oOpeningForm.WindowState = 0
else
	do form opening name this.oOpeningForm linked
endif
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform