Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding LINKED...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00083669
Message ID:
00083696
Vues:
26
Bruce,

LINKED is just a way of giving a memvar name to the form object. That memvar still has scope as you've found. If you are trying to get two forms to cooperate with each other you might want to try:

do form Child with thisform linked oForm
thisform.moChildForm = oForm

where moChildForm is a parent form property, the child form can also keep it's own link back to the parent form with the reference you passed to it. They can use these links to make callbacks to each other. For instance when the child form wants to close it might:

this.moParentForm.CallingToLetYouKnowImOuttaHere()

in it's Release() method. The Parent form can then:

* Method CallingToLetYouKnowImOuttaHere()
this.moChildForm = .null.

If you are trying to come up with a generic use child form/object you might want to use another control, like a button, that launches the child form as the link maintaining object so you aren't placing restrictions on the forms that can use the child.

>Oh, I get it now, that's what Edward/Philip were saying...but what's the point of using LINKED if I have to declare a public var, since it works fine without LINKED too? (I'm not grumbling at you, Mark, just in general) :)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform