G
Guest
I would like to know if there is a way to convert a variable of a certain
type literaly instead of explicity knowing what type to convert it to. For
example i have the following code:
dim myObject as Object
Dim aObj as htmlcell
aObj = CTYPE(myObject, "HTMLCELL")
I know the Ctype function requires the type in its second parameter to be
known. It does not accept literal values. There are instances where i have a
bunch of controls and instead of creating multiple ctype functions for each
control pointing to its type, I would like just one ctype and then passing my
code a literal to indicate to convert it to. I hope you understand what I
want. I believe what I need is called reflection, but I am not sure...
Thanks ahead of time.
type literaly instead of explicity knowing what type to convert it to. For
example i have the following code:
dim myObject as Object
Dim aObj as htmlcell
aObj = CTYPE(myObject, "HTMLCELL")
I know the Ctype function requires the type in its second parameter to be
known. It does not accept literal values. There are instances where i have a
bunch of controls and instead of creating multiple ctype functions for each
control pointing to its type, I would like just one ctype and then passing my
code a literal to indicate to convert it to. I hope you understand what I
want. I believe what I need is called reflection, but I am not sure...
Thanks ahead of time.