Hi All,
Been playing with Classes in VBScript and am now trying to develop a Class that will be used to Serialize objects.
What I want to do ibe able to loop through each property of an object and discover the value and name of each property.
I have tried the following but this is only a guess:
Can anyone help me on this one?
Been playing with Classes in VBScript and am now trying to develop a Class that will be used to Serialize objects.
What I want to do ibe able to loop through each property of an object and discover the value and name of each property.
I have tried the following but this is only a guess:
Code:
<%
Class Test [COLOR=green]' some class[/color]
Public msg1 [COLOR=green]' some properties[/color]
Public msg2
Private sub Class_Initialize() [COLOR=green]' a method[/color]
msg1= "Hi"
msg2= "By"
End Sub
End Class
Set myTest = new Test [COLOR=green]' an instance of the class[/color]
[COLOR=green]' loop through each property of the myTest object[/color]
[COLOR=green]' and display the property ?[/color]
For each x in myTest
Response.write x & "<br>"
Next
%>
Can anyone help me on this one?