Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return a value from a form
Message
From
02/05/1998 09:47:52
 
 
To
02/05/1998 06:26:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095978
Message ID:
00096497
Views:
20
>>My program is callin the Form like suggested in the thread 'Do Form With param1 To Var'
>>
>>Not sure how to implement your suggestion. Can you express in a small example?
>
>I implemented msgsing between objects - this saves me the need to have anything modal, but a little too compilcated to go into here
>but as for passing parameters, here is a simple example
>(you can do the same with SCX based forms )
>
>
>
>loParam=CreateObject("params")
>myForm=createObject("formclass",loParam)
>
>? loParam.nSomeValue
>myForm.Show(1)
>? loParam.nSomeValue
>
>DEFINE CLASS Params as Custom
> nSomeValue=0
>ENDDEFINE
>
>DEFINE CLASS formclass as form
> oParam=.null.
>
> PROCEDURE Init
> LPARAMETERS toParam
> this.oParam=toParam
> ENDPROC
>
> PROCEDURE QueryUnload
> this.oParam.nSomeValue=10
> this.oParam=.null.
> ENDPROC
>ENDDEFINE
>


Thanks Arnon
I'll add that to my bag of tricks

Russ
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform