Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MODAL Form - return parameter
Message
De
10/08/1998 09:36:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
10/08/1998 09:27:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00125213
Message ID:
00125220
Vues:
12
>Hi all.
>How I return parameter when I create form from VCX where is modal form. I use this command:
>l_Info = CREATEOBJECT("MSG_Question","Do You wann really exit ?")
>l_Info.show()
>I have "RetPar" property, where is stored return parameter. How I get this property after command l_Info.show() ?
>Thanks.
Martin,
This is the hard way if ever could be done. To make it easy for a start create a var before calling and change it :
mRetVal = 0
l_Info = CREATEOBJECT("MSG_Question","Do You wann really exit ?")
l_Info.show()
*in MSG_Question instead of form.retpar directly set m.retval
W/o createobject you could do it like this as well :
do form mymodalwithretpar to RetValue

As I understand you're designing another messagebox() beware this one fires caller form's activate on return.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform