indeed object does not contain that definition. if possible, you should use the base class, orinterface approach to solve your problem. otherwise, you'd have to use reflection to make late-bound calls
----- Roel wrote: ----
Off course after the instantion of myObject I try to execute method
(myObject.SetParameterValue
The error I get is the following: 'object' does not contain a definition fo
'SetParameterValue
"Sijin Joseph" <si*********@hotmail.com> wrote in messag
news:O6****************@TK2MSFTNGP09.phx.gbl..
What happens when you run this code -- -Sijin Josep
http://weblogs.asp.net/sjosep "Roel" <vd*****@pandora.be> wrote in messag news:uc**************@TK2MSFTNGP12.phx.gbl.. Hell I try to create an object with late binding. I must create an A objec
o B object. That depends on what the user choses in the GUI. Here you ca
se how I try to do it but it will not work. Does anybody knows how t
progra this structure ? Many thx !
object myObject
if (String.Equals(RadioButtonList1.SelectedItem.Value ,"ADT")
myObject = new A()
els
myObject = new B()
>>