R
rn5a
Consider the following code:
-------------------------------------------
Class MyInt
Public MyValue As Integer
End Class
Sub Page_Load(..........)
Dim x As New MyInt
Dim y As New MyInt
x.MyValue = 15
y = x
y.MyValue = 30
Response.Write(x.MyValue)
End Sub
-------------------------------------------
Please note the line
x.MyValue = 15
This line assigns a value to the object but which is the object here -
MyValue, MyInt or x or x.MyValue?
Thanks,
Ron
-------------------------------------------
Class MyInt
Public MyValue As Integer
End Class
Sub Page_Load(..........)
Dim x As New MyInt
Dim y As New MyInt
x.MyValue = 15
y = x
y.MyValue = 30
Response.Write(x.MyValue)
End Sub
-------------------------------------------
Please note the line
x.MyValue = 15
This line assigns a value to the object but which is the object here -
MyValue, MyInt or x or x.MyValue?
Thanks,
Ron