VarioMenu VarioMenuItem.CreateSubItem method
Creates new menu item object which is child of this menu item. The child is automatically added to the Subs collection.

Syntax:

VarioMenuItem.CreateSubItem(identifier) - returns the newly created object

Parameters:

identifier - Identifier of newly created menu item object in the Subs collection. It can be anything holded in VARIANT type - object, numeric value or string, but in most cases this will be a string.

Remarks:

This method is the only way of creating new menu item. You can use the returned value to set properties of the menu item created. There is no need to make anything else with it. The used identifier should be unique in the Subs collection of this object else error is returned. Later you can enumerate Subs collection and use the identifier to make access to the menu item's object.

Applies to:

VarioMenuItem object

newObjects Copyright 2001-2006 newObjects [ ]