GetMaxID
Gets the highest dispid from members of this interface and all of its bases.
function GetMaxID(
ointerface
);
Parameters
- ointerface
A VCCodeInterface object.
Return Value
The highest dispid from the members of oInterface and all its bases.
Remarks
Call this function to get the highest dispid from the members of the specified interface and all its bases.
Example
if (strInterfaceType == "custom")
window.external.AddSymbol("DISPID_DISABLED", true);
else
{
var nDispID = window.external.FindSymbol("DISPID");
if (!nDispID.length)
{
nDispID = GetMaxID(oInterface) + 1;
window.external.AddSymbol("DISPID", nDispID);
}
}
See Also
Tasks
Concepts
Customizing C++ Wizards with Common JScript Functions