G
Guest
I have the following class:
Public Class myObj
Dim x as myOtherObj
Public Property otherObject() As myOtherObj
Get
otherObject = x
End Get
Set(ByVal Value As myOtherObj)
' x is initially nothing
x = Value
' x is still nothing even though Value is not!
End Set
End Property
End Class
When I step thru Set() with a debugger, x starts out as nothing and remains
that way, even though value is not nothing.
Why is this?
And what's the 'proper' way to fix Set() ?
Thanks in advance for your help,
Hal Heinrich
VP Technology
Aralan Solutions Inc.
Public Class myObj
Dim x as myOtherObj
Public Property otherObject() As myOtherObj
Get
otherObject = x
End Get
Set(ByVal Value As myOtherObj)
' x is initially nothing
x = Value
' x is still nothing even though Value is not!
End Set
End Property
End Class
When I step thru Set() with a debugger, x starts out as nothing and remains
that way, even though value is not nothing.
Why is this?
And what's the 'proper' way to fix Set() ?
Thanks in advance for your help,
Hal Heinrich
VP Technology
Aralan Solutions Inc.