MenuBar Property (AForm)

Returns or sets the active menu object on the form.

Syntax

Object.MenuBar [ = pMenuBar ]

The MenuBar property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

pMenuBar

AMenu

The active menu object on the form.

Comments

A form can have multiple menu bars, with different menu choices. Only one menu bar can be displayed at a time, use this property to set the current menu.

Example

The following example make sure that mnu1 is the current menu bar:

if MenuBar<>mnu1

MenuBar=mnu1

endif

 

Applies to

AForm

See Also

AMenu, Menus, MenusCount