|
Post by Yakkov on Feb 21, 2021 4:07:18 GMT -5
I am new to VB6
I tried
dim d as iDictionary
set d = new .. . . . I can't find anything appropriate in the list
d.add "a", "a" results in runtime error 91 -Object variable not set
I can't figure out how am I supposed to deal with this error.
Request a simple example.
Regards,
|
|
|
Post by Kelly Ethridge on Feb 21, 2021 4:35:00 GMT -5
Hello, OK, the IDictionary is actually just an interface and is implemented by Hashtable. It cannot be directly created. What you would want to do is create a Hashtable instead. Here is a quick example to create a Hashtable: Dim ht As Hashtable Set ht = New Hashtable
Here is a link to the documentation for Hashtable: www.kellyethridge.com/vbcorlib/doc/Hashtable.html. I hope this helps. Kelly
|
|
|
Post by Yakkov on Feb 22, 2021 5:06:35 GMT -5
Now it is all clear.
Thank you very much
You guys have done such a tremendous job and given it away all as free.
Not only that, you gladly and promptly come forward to help people when they need it.
My sincere appreciation and gratitude to you all.
Warm regards,
|
|
|
Post by Kelly Ethridge on Feb 22, 2021 15:39:30 GMT -5
Thank you for your kind words. Feedback is always appreciated
|
|