Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass parms to form using SHOW method?
Message
 
À
07/12/2001 15:10:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00591335
Message ID:
00591493
Vues:
21
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform