Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling a menu item

Status
Not open for further replies.

nik11

Programmer
Feb 6, 2010
34
0
0
US
On opening a window, I need to disable a menu item on certain condition. Can anyone please tell me how this can be done as there is no protect attribute available on the menu item as on the other columns of the DW.
 
From the help file:
Syntax

menuname.Disable ( )

Argument Description
menuname The name of the menu selection you want to deactivate (disable)
Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs. If menuname is null, Disable returns null.
Equivalent syntax Setting the menu's Enabled property is the same as calling Disable.

menuname.Enabled = false

This statement:

m_appl.m_edit.Enabled = FALSE

is equivalent to:

m_appl.m_edit.Disable()

Matt

"Nature forges everything on the anvil of time"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top