Jenda
September 22nd, 2001, 08:45 AM
How do you say HASH in VB?
I need an object that would allow something like
Obj("foo") = "Hello world"
If not isEmpty(Obj("foo")) then MsgBox obj("foo")
The index will always be a string, the value will be either number or a string (I don't mind if the number gets converted to a string.)
I need the Obj("foo") = "something"
to work correctly no matter whether the Obj("foo") was set to anything previously and I need the var = Obj("foo")
to return
either Empty or "", but again NOT to bomb out when the Obj("foo") was not set.
Thanks, Jenda
P.S.: I tried the "Collection" class. It's less than useless.
I need an object that would allow something like
Obj("foo") = "Hello world"
If not isEmpty(Obj("foo")) then MsgBox obj("foo")
The index will always be a string, the value will be either number or a string (I don't mind if the number gets converted to a string.)
I need the Obj("foo") = "something"
to work correctly no matter whether the Obj("foo") was set to anything previously and I need the var = Obj("foo")
to return
either Empty or "", but again NOT to bomb out when the Obj("foo") was not set.
Thanks, Jenda
P.S.: I tried the "Collection" class. It's less than useless.