Hi!

ok, i have a situation where, in my immediate window i can go:

?typename(fred)

and i get

"TextBox".

I go:

If TypeOf fred is TextBox then ?"textbox" else ? "not textbox"

and i get


"not textbox".

I`ve tried different types for fred. Ideally it would be object, as i want to iterate through each of the controls on a form, so i`d get errors/have to write error handling code if i used type `textbox`.

Any ideas whats going on? Bug in VB (6, no service pack)? Misunderstanding of TypeOf/TypeName?

This code is in a DLL, if thats relevant.