Hi all,
I have lots of properties in a class. (clsTest)
Properties are created like (simplified ...)
Public ItemA as string
Public ItemB as string
Public ItemC as string
....
Public CountA as integer
Public CountB as integer
Public CountC as integer (I did not use Property Let/Get for any of these props)
....
I need to refer to the values of these properties like:
Sub TestValues(input)
Dim oTest as clsTest
Set oTest=New clsTest
Dim strItemvalue as string
Dim intCountValue as Integer
strItemValue = oTest.Item & input <== wrong
intCountValue=oTest.Count & input <== wrong
End sub
I tried oTest("Count" & input) <== wrong also.
I can't figure this out at the moment.
Is there a way to do this without 'Select case input' ?
At the moment I am sure I am doing this wrong ... (the code is beginning to taste like spaghetti ...)
Arno R