Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameter Passing in Forms
Message
From
14/10/1998 03:21:00
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/10/1998 03:08:32
Jocylyn Sy
Freelance Programmer
Cebu, Philippines
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00146521
Message ID:
00146526
Views:
26
>Good day,
>
>I was just wondering if it is possible to pass by
>reference to forms.
>
>I have a form which I was hoping to use for getting
>the period criteria of a report and the specific buyer.
>
>I have a main form which would call this form passing
>the local variables for the buyer number, start date,
>and end date.
>
>I changed stored the choosen information in the variables
>I declared in the parameters.
>
>When the program returns to the calling form. The changes
>are not reflected.
>
>From what I understood, passing by reference is
>usually okay for DO..WITH... and is the default.

You could call the other form with "thisform" from main form. So called form would have access to PEM of caller.
* Main form some method
do form child with thisform

*Child.init
lparameters oCaller
thisform.oCaller = oCaller

* Child any PEM
this.value = thisform.oCaller.clientID.value && get caller's textbox.value
acopy(this.aCustom, thisform.oCaller.aCaller) && Copy array from caller
thisform.oCaller.refresh() && Refresh caller
thisform.oCaller.anyPEM && Access to caller's PEM
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform