开发者

How to check type of Object in VB 6 ? - I do not want to use 'TypeOf' method

How to check type of object in VB 6.0 we have to modify existing code to use 'typeof' method, Is there any method like moving cursor over object variable or like quick watch where I can see its type.

I know following method but I do not want to use it 开发者_如何学Go-

Set fs = New Scripting.FileSystemObject 

If TypeOf fs Is Scripting.FileSystemObject Then 
  Debug.Print "Is a FileSystemObject" 
End If 


Try the TypeName Function.

In your example if you enter TypeName(fs) in the Immediate Window you would get back "FileSystemObject"


Right click object variable and select "Quick Info" from context menu.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜