N
Norton
Dear all,
I have created many objects
Currently i create a toString function, which is to list all variables value
inside this object
Somthing like
Public Class ABC
Dim sName as string = "Hello"
Dim iValue as integer = 10
Public Function ToString() as string
Dim temp as string
temp &= "sName =" & sName & ","
temp &= "iValue =" & iValue
Return temp
End Sub
End Class
Everytime i added a new variable i need to modify this function again
If there any method to list all variable name and its value in an object and
then return it as string?
Thx a lot
I have created many objects
Currently i create a toString function, which is to list all variables value
inside this object
Somthing like
Public Class ABC
Dim sName as string = "Hello"
Dim iValue as integer = 10
Public Function ToString() as string
Dim temp as string
temp &= "sName =" & sName & ","
temp &= "iValue =" & iValue
Return temp
End Sub
End Class
Everytime i added a new variable i need to modify this function again
If there any method to list all variable name and its value in an object and
then return it as string?
Thx a lot