|
-
Jan 19th, 2005, 03:40 AM
#1
Thread Starter
Fanatic Member
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?
Last edited by nkad; Jan 19th, 2005 at 12:49 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|