Enable
PowerScript function
Description
Enables an item on a menu so a user can select it.
Applies to
Menu objects
Syntax
1 |
menuname.Enable ( ) |
Argument |
Description |
---|---|
menuname |
The name of the menu selection you want to |
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.
1 |
menuname.Enabled = TRUE |
This statement:
1 |
menu_appl.m_delete.Enabled = TRUE |
is equivalent to:
1 |
menu_appl.m_delete.Enable() |
Examples
This statement enables the m_delete menu selection on the menu
m_appl:
1 |
m_appl.m_delete.Enable() |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest