List object methods and properties

后端 未结 6 1600
有刺的猬
有刺的猬 2020-12-31 00:12

Is there any way to list available methods for created object in VBS?

For example:

Set IE = CreateObject(\"InternetExplorer.Application\")

6条回答
  •  梦谈多话
    2020-12-31 01:03

    VBScript itself does not support type introspection outside the TypeName and VarType functions, which will give you the type of an object, but won't give you access to its internal structure.

    As other answers explained there is a DLL that would provide this feature, but it doesn't ship with Windows, and since it was part of an old version of Visual Studio there might not be a legal way to obtain it nowadays.

提交回复
热议问题