![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all; I'll probably bombard this group with some newbie questions... And thanks to all. I have created an object that contains a cbo and a text box. The cbo is to get an acct#, and then it should display the company name in the text box. I am not sure how I reference the value of the textbox object within the class. Right now, I have added a property called cname to the FORM and I am doing thisform.cname=customer.name, but this is not good oop practice. I don't think it sould be this.parent.txtName1.value=customer.name I hope I make sense... Thanks, AK |
#3
| |||
| |||
|
|
this.parent.controlname.property is exactly the right way. Or, make setting the value a property of the container, and pass it the value: this.parent.SetName("Company name") and let the container put the name wherever it sees fit. |
![]() |
| Thread Tools | |
| Display Modes | |
| |