>Hi,
>
>How to return a value or some values from the child form to parent form ?
>for example
>I want to return the no. of invoice line item from the child form back to the parent form (Invoice header)
>when the child form close.
>
>Please advise,
>
>Thanks,
>
>Derek Yim
If the child form is a modal form, then you can do the following:
When launching the child form, you could use:
DO FormName WITH param1,param2,...paramn TO xRetVal
where the variable xRetVal will be assigned the value returned by child form.
If you don't need to pass parameters to child form, you can omit the WITH and the parameter list.
If you do pass parameters to the child form, make sure you have a PARAMETERS statement at the first line of the INIT() of the child form.
in the Unload of the child form
RETURN (somevalue)
where (somevalue) is the value you want to return to parent form.