Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scope of a form's Property Value
Message
De
24/08/2002 21:58:15
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:
00693374
Vues:
22
Armin
Hello and thank you for the suggestion. I found I am able to access the properties from a parent form by preceding property with the physical form name. In other words if there is a value from the parent form that has to be updated within the child form, the following seems to work
> oldform.property.value = ???
Now the curious thing, and I think what threw me off is that if I refer to the parent form using the name property I receive an error message. If I refer to the parent form using the physical name ( the one that I use when I originally issued the do form command ), then it seems to work. I don't know why this would be the case but it is. I will try your suggestion as well.
Thanks Armin

Regards,
Carmen
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform