>I've developed a little pop-up navigator form in a PRG and need to pass a return object reference so that data can be passed back to the primary (calling)form's controls.
>
>Since (i think) a "do form" won't work (the form is intanciated and Init has passed), what would be a good method? I have considered adding a property to the PRG form to hold the return object's (form.page) handle and populating it when SHOW is called.
>
>Any help appreciated.
>Terry
You can add your parameter to the definition of the Show method. Of course for this you need to create your custom form class. The normal show method only defines the nStyle parameter, but say you want to change the caption on a loaded form you can do something like:
LPARAMETERS nStyle, cMyCaption
And change the caption inside of the Show method. The alternative method is to assign the value to a custom property and process it during the form's Activate event. HTH