Find Method (AMenu)

Returns the menu object who's Name property matches the string specified.

Syntax

 [ pMenu = ] Object.Find ( sMenu )

The Find method syntax has the following parts:

 

Name

Type

Description

Object

AMenu

AMenu object

sMenu

BString

A string specifying the Name of a menu object to be searched on.

pMenu

AMenu

The menu object found.

Comments

If no menu object is found who's Name property matches the Find string, an error message is returned.

Example

The following statement returns the "Edit Paste" menu object if exists:

mnuEditPaste=mnu1.Find("Edit Paste")

Applies to

AMenu

See Also

Next, Previous