Home > Code Library > SmartMenuXP > ChildID

Last Update 01 Nov 2001

 


Search:



  

Options:

   

   

   

   



SmartMenuXP Reference

ChildID Method

Returns a value that corresponds to the ID of the menu item that has a relative position within the parent child list.

Syntax

object.ChildID(Parent, ChildIndex)

The ChildID syntax has these parts:

Part Description
object An object expression that evaluates to a SmartMenuList object.
Parent A numeric expression that evaluates to a menu item ID.
ChildIndex A numeric expression that evaluates to a relative menu item position.

Remarks

The ordinary position for the first child within a parent child list is always 1. If the function fails the return value is 0.

 
Copyright © 2001, Andrés Pons (andres@vbsmart.com). All rights reserved.