Disable – PB Docs 2017

Disable

PowerScript function

Description

Disables an item on a menu. The menu item is dimmed (its color is
changed to the user’s disabled text color, usually gray), and the user
cannot select it.

Applies to

Menu objects

Syntax

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.

This statement:

is equivalent to:

Examples

This statement disables the m_edit menu item on the menu
m_appl:

See also

Enable


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x