Issues with array of class objects...
I am building an array of class objects to store data. Everything works perfectly when I pass integer values to my objects. But i am trying to implement a method to retrive data based on Keys (string values). I know how to do this, its not hard. But vbscript is being a pain-in-the-backside. I can't seem to get the key string value to be passed to my Get Property for that object.
This doesnt work and I get an Object required error message.
Dim objClass
Set objClass = New MyClass
objClass.MyMethod("stringkey").value <---Error on this line
If i just pass the integer value, say objClass.MyMethod(3).value, everything works fine. Strange. Or am i overlooking something?