Returns the menu object who's Name property matches the string specified.
[ 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. |
If no menu object is found who's Name property matches the Find string, an error message is returned.
The following statement returns the "Edit Paste" menu object if exists:
mnuEditPaste=mnu1.Find("Edit Paste")