"Cor Ligthert[MVP]" <no************@planet.nlwrote in message
news:DD**********************************@microsof t.com...
Michael,
To me you write that it has no type and then you tell that you can get a
type, what is the truth, has it a type or does it have no type?
I am interested in a var without a type, that is where I am curious about.
Cor
I've never heard of a variable without a type other than in typeless
languages. You misunderstood my comments - if you need to return multiple
types from a function, return type "Object". The calling code must then
cast it to the correct type before anything can be done with it. Also, as I
stated, the MS Office Interop assemblies are full of functions that return
"Object" and not the actual type. I assume that this is because the COM
world is very type limited, and the MS Office Interop assemblies must
ultimately call COM interfaces.
Mike.