next up previous contents
Next: 7. Credits Up: 6.6 Type Information Object Previous: 6.6 Type Information Object   Contents

Methods

GetTypeLib
returns the containing type library object.
GetFuncDesc(n)
returns a table describing the n-th function of the type description. This table contains the following fields: memid (dispatch identifier), invkind (invoke kind), Params (number of parameters), ParamsOpt (number of optional parameters), description, helpfile, helpcontext, name. Besides that, it stores an array-like table called parameters describing each parameter of the function, with these fields: name, type.
GetVarDesc(n)
returns a table describing the n-th variable (or constant) in the type description. This table contains the following fields: name, value (for constants only).
GetDocumentation
returns a table with documentation for the type description, with the fields name, helpstring, helpcontext and helpfile.
GetTypeAttr
returns a table containing the type attributes for the type description. This table holds the following fields: GUID, typekind, Funcs (number of functions), Vars (number of variables or constants) and ImplTypes. There is also a flags field, containing a table that describes the flags for this type description. This table contains the following boolean fields: control, appobject, dispatchable, oleautomation, cancreate.
GetImplType(n)
For type descriptions of COM classes, this returns the type information object for the nth interface of the COM class.
GetImplTypeFlags(n)
For type descriptions of COM classes, this returns a table containing the implementation flags for the n-th interface belonging to the COM class. This table holds the following boolean flags: default, source, restricted, defaultvtable.
ExportEnumerations
returns a table with all the enumerations in this typelib. The keys are the enumeration names, and each one of them is a table, keyed by the enumeration values.

next up previous contents
Next: 7. Credits Up: 6.6 Type Information Object Previous: 6.6 Type Information Object   Contents
Fabio Mascarenhas de Queiroz 2005-06-06