Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass parms to form using SHOW method?
Message
From
07/12/2001 15:10:35
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00591335
Message ID:
00591406
Views:
19
This message has been marked as the solution to the initial question of the thread.
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform