Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass value of parameters from UI to BIZ to DA
Message
 
 
To
20/01/2008 15:10:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01283283
Message ID:
01283465
Views:
14
>>You see, the BIZ object does not know of the UI class. But from Dragan's message I can see that I can pass UI object to BIZ and BIZ to DA and using amembers() do what needs to be done.
>>
>>Thank you very much for your help.
>
>Actually I don't see:) They are objects of the same form,no?
>Cetin

Maybe I can clarify. You are right, BIZ object belongs to the form which is UI. BIZ object is instantiated in the INIT method of the UI form. And when BIZ object is instantiated, in its (BIZ) INIT method it instantiates the DA object. Passing THISFORM (UI) to the BIZ on instantiation allows the BIZ get some values from properties of the UI form. And then BIZ passes itself (THIS) to the DA object on instantiating. And DA can now get values of the BIZ object properties. Does the above makes it more clear? <g>.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform