Ed Leafe wrote:
> On Jul 19, 2008, at 7:45 PM, Paul McNary wrote:
> 
>> I am using Class Designer to design multiple forms.
>> I have Form A set up and all it's Biz Objects bound and working. I
>> create Form B.
>>
>> If I call Form B from Form A with dabo.ui.createForm("FormB",show=True),
>> does code created for Form B also come along for the ride?
> 
>     Of course.
> 
>> Do Biz objects instantiated in Form A retain state in the new formB?
> 
>     Well, the answer is a great big "it depends". Are you creating new 
> instances of those bizobjs in formB? If so, they are independent 
> objects, right? Changing one won't change the other. But if you pass the 
> formA bizobj to formB, then they are the same object, and so the state 
> is the same.
> 
> -- Ed Leafe
> 
> 
> 
> 
> 
Hello Ed

Below is an answer you gave last year to Nate wanting to pass values 
between forms:
----------------------------------------
Just pass it an object reference.

FormA = dabo.ui.dForm(self)
FormB = dabo.ui.dForm(self)

#control code

FormA.PassedValue = FormB.txtBox.Value

or do it this way:

FormA.PassedObj = FormB.txtBox
FormA.PassedObj.Value
----------------------------------------
Where would these lines be put?

FormA = dabo.ui.dForm(self)
FormB = dabo.ui.dForm(self)

and then are they globally referenced or do they have to be qualified by 
something else?

And then further clarification from above, How do you pass the formA Biz 
object to formB?

Thank you

Paul McNary
[EMAIL PROTECTED]


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to