Version

GetMenuItemFromArg Method

Retrieves the XamMenuBase item from its QTP variant for the Replay action. From the identifier, the path is traversed until the menu item is reached.
Syntax
'Declaration
 
Protected Function GetMenuItemFromArg( _
   ByVal oMenuItemIdentifier As System.Object, _
   ByVal bValidate As System.Boolean _
) As System.Object
protected System.object GetMenuItemFromArg( 
   System.object oMenuItemIdentifier,
   System.bool bValidate
)
protected: System.Object* GetMenuItemFromArg( 
   System.Object* oMenuItemIdentifier,
   System.bool bValidate
) 

Parameters

oMenuItemIdentifier
Incoming QTP variant parameter representing a single XamMenuBase item value
bValidate
If true throw exceptions if unable to parse into a single of XamMenuBase item value

Return Value

XamMenuBase object parsed from the incoming QTP variant
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also