Enable – PB Docs 2017

Enable

PowerScript function

Description

Enables an item on a menu so a user can select it.

Applies to

Menu objects

Syntax

Argument

Description

menuname

The name of the menu selection you want to
enable

Return value

Integer.

Returns 1 if it succeeds and -1 if an error occurs. If menuname is
null, Enable returns null.

Usage

Enabling a menu item changes its color to the active color (not the
dimmed, or disabled, color). Calling Enable sets the item’s Enabled
property to true.

Equivalent syntax

Setting the menu’s Enabled property is the same as calling
Enable.

This statement:

is equivalent to:

Examples

This statement enables the m_delete menu selection on the menu
m_appl:

See also

Disable


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