Share via


GetMaxID

Gets the highest dispid from members of this interface and all of its bases.

function GetMaxID( 
   ointerface  
);

Parameters

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

Creating a Custom Wizard

Concepts

Customizing C++ Wizards with Common JScript Functions

Designing a Wizard

Other Resources

JScript Functions for C++ Wizards