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
21/01/2008 06:31:29
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:
01283639
Views:
12
>
>Dmitry,
>I'm afarid it still doesn't make sense to me. If UI is the form, BIZ belongs to form and DA inited there, why would you ever need to pass thisform and this (and consider you need to, doesn't really matter).
>BIZ can simply check thisform properties and DA in turn can check BIZ and thisform properties.
>If you need those properties to be evaluated later (say form would get some parameter and then set the properties, BIZ and DA needs to read this properties) then you have 2 options at least:
>1) In form.init update BIZ and DA properties.
>2) Call BIZ and DA.Init()
>Cetin

Cetin,

I think what you are saying makes sense, very logical. But something does not work.

Here is how I test this:

I have the following line in a method of the BIZ class:
this.my_property = thisform.my_property
But I get error "Object is not contained in a Form." So it looks like even though I instantiate BIZ in the INIT method of the UI FORM and reference it to a property of the UI form, "thisform" cannot be references from BIZ class. What am I missing?
"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