Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO FORM...
Message
From
29/09/2001 12:31:51
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/09/2001 15:07:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00561953
Message ID:
00562266
Views:
155
>Thanks, but I already knew it. What would be exactly my "Do Form" line command if i want to open a form named X, my parameter list is A, B, C whose C is linked (return must be return from X form)? Also, I want the value D be returned from my X Form. My Unload() function would seem like RETURN C, but waht about D !!! I've no examples of multiples parameters. :o( thanx

There are several alternatives.

The easiest way, I think, would be to pass the entire form as a parameter:
* FormA.Button1.Click()
do form FormB with ThisForm
* FormB.Init()
lParameters toParent
ThisForm.oParent = toParent
and then modify properties in the calling form from the child form:
* Anywhere in FormB
with ThisForm.oParent
  .Property1 = Value1
  .Property2 = Value2
endwith
It may be necessary to destroy the reference to the parent form:
* Unload()? Destroy()?
ThisForm.oParent = NULL
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform