Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope of a form's Property Value
Message
 
À
24/08/2002 19:38:12
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00693357
Message ID:
00693370
Vues:
18
Carmen,

>Is there a way to access the value of a property on a form when a child form is launched? I thought you could access the value of any property by prefacing that property with the name of the form. When I try that, I receive an alias not found error.

Sergey already suggested one good way. Another way would be to add a property to your child form called 'oCallingForm'. Then put the following code into the Init() method of the child form:
IF TYPE("_SCREEN.ActiveForm.Name") == "C"
  THIS.oCallingForm = _SCREEN.ActiveForm
ENDIF
HTH,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform