Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== InsertItem ====== Method of [[:scripting:api:menu-object:start|IMenuObject]] ===== Description ===== Inserts new context menu handler or separator when handler is NULL ===== Parameters ===== * [[scripting:api:data-type:long|long]] **nPosition** * [[scripting:api:data-type:BSTR|BSTR]] **sName** = %%""%% (optional) * [[scripting:api:data-type:VARIANT|VARIANT]] **pHandler** (optional) ===== Syntax ===== ==== JavaScript ==== <code javascript> MenuObject.InsertItem(nPosition, sName, pHandler); </code>==== Visual Basic Script ==== <code vb> MenuObject.InsertItem nPosition, sName, pHandler </code>==== C++ ==== <code cpp> HRESULT hr = MenuObject.InsertItem(nPosition, sName, pHandler); </code>===== See Also ===== [[:scripting:api:menu-object:start|IMenuObject]] ~~NOTOC~~