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.
Mattias Sj?gren - 18 Dec 2004 00:20 GMT
You can't do that. And even if you could, what would you do with the
function's return value?
Mattias

Signature
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.