Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO form ; TO ; problem !! can't return value
Message
 
To
06/05/1999 23:59:05
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00215774
Message ID:
00215999
Views:
34
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform