Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_Nav_DisableMenuItem

CSV_Nav_DisableMenuItem

Disables/enables a specified item in a specified popup menu. A disabled menu item appears embossed in the popup menu and cannot be selected.

Syntax

CSV_Nav_DisableMenuItem(iMode,sMenuItem,sSubMenuItem,sMenuName,sPageName)

#iMode :

#sMenuItem:

Menu item to enable/disable.

#sSubMenuItem:

Submenu item to enable/disable(if applicable).

#sMenuName:

Name of menu (that is. button associated with popup menu).

#sPageName:

Name of page associated with menu.

Return Value

0 if successful, otherwise -1.