Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the return parameter from a MDI form ?
Message
 
 
To
26/07/2011 00:50:35
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01519135
Message ID:
01519140
Views:
43
>Hi,
>
>Is the following code is what you mean ? But I don't know where the code should put into.
>
>
>*** Create the Parameter object
>oParamObj  = CREATEOBJECT( 'parameterobject' )
>*** Instantiate the modal form
>oModalForm = CREATEOBJECT( 'modalformclass', oParamObj )
>*** Check the returned object properties
>IF oParamObj.FormWasOK
>  *** Do whatever 
>ELSE
>  *** Do something else
>ENDIF
> 
>
>
>Can you give me some detail example how to use it ?
>
>Thanks
>
>Derek
Before calling the form
oParamObject = createobject('Empty')
Form's Init
lparameters toParam
thisform.oParam = toParam
Somewhere where you need to set the property.
addproperty(thisform.oParam, 'SelectedCustomer', thisform.txtCustomer.value)
In the calling form:
if pemstatus(oParamObject, 'SelectedCustomer',5)
   lcCustomer = oParamObject.SelectedCustomer
endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform