Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO form ; TO ; problem !! can't return value
Message
 
À
06/05/1999 23:59:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00215774
Message ID:
00215999
Vues:
33
>Bruce,
> Yes i try in the caller form use
>DO Form calledfrm Name ocalledform
>with thisform
>
>But how to reference back from the called form to the caller form ?

I see you've gotten things working...but to answer the question, it goes like this:

Create a custom property in callerform: "ocalledform" (and set the property = .NULL when not in use is a good idea)
Then launch with:

Do Form calledform Name thisform.ocalledform

Now calledform is an "object" or ("child") of callerform, so

1) when in callerform, reference ocalledform with Thisform.oCalledform.myobj...

2) when in calledform, reference callerform with Callerform.myobj...

You can use TYPE and ISNULL to check existence if needed...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform