Hi,
Can anyone tell me how to loop through the properties of a class.
E.g. I need to write to a change log the old values and the new values for a specific instance of a members class.
I need to create a string from the values
e.g. name1,address1,address2 etc
but I want to avoid having to do
objmember.name & "," & objmember.address1 etc
I presume you can loop through the properties similar to
Dim item as blah
for each item in objmember
do something
next
My problem is what to define item as.
Any and all help and comments appreciated
Mark
Can anyone tell me how to loop through the properties of a class.
E.g. I need to write to a change log the old values and the new values for a specific instance of a members class.
I need to create a string from the values
e.g. name1,address1,address2 etc
but I want to avoid having to do
objmember.name & "," & objmember.address1 etc
I presume you can loop through the properties similar to
Dim item as blah
for each item in objmember
do something
next
My problem is what to define item as.
Any and all help and comments appreciated
Mark