Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass parms to form using SHOW method?
Message
 
To
07/12/2001 15:10:35
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00591335
Message ID:
00591493
Views:
20
That's it J!
Thanks

>>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
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform