>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.
do form child with thisform
lparameters oCaller
thisform.oCaller = oCaller
this.value = thisform.oCaller.clientID.value
acopy(this.aCustom, thisform.oCaller.aCaller)
thisform.oCaller.refresh()
thisform.oCaller.anyPEM
Cetin