Variable Binding Class
Posted
by Davis
on Stack Overflow
See other posts from Stack Overflow
or by Davis
Published on 2010-04-15T03:02:11Z
Indexed on
2010/04/15
4:13 UTC
Read the original article
Hit count: 169
Hi, I believe this is a tough one...
I'm trying to create a collection of variable binding in a class.
It is intended to look something like this:
Dim x as integer, s as string
Dim c as new VBindClass
x = 1
s = "Hello"
c.Add x, s
Debug.Print c.value(x) '= 1
Debug.Print c.value(s) '= "Hello"
Is there some function that allow us to retrieve a unique ID for a given variable and also get/set based on variable?
© Stack Overflow or respective owner