Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Check – PB Docs 2019 – PowerBuilder Library

Check – PB Docs 2019

Check

PowerScript function

Description

Displays a checkmark next to a menu item in a drop-down or cascading
menu and sets the menu item’s Checked property to true.

Applies to

Menu objects

Syntax

Argument

Description

menuname

The fully qualified name of the menu next to which you
want to display a checkmark. The item must be in a drop-down or
cascading menu, not an item on a menu bar.

Return value

Integer.

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

Usage

A checkmark next to a menu item indicates that the menu option is
currently on and that the user can turn the option on and off by choosing
it. For example, in the Window painter’s Design menu, a checkmark is
displayed next to Grid when the grid is on.

You can use Check in an item’s Clicked script to mark a menu item
when the user turns the option on and Uncheck to remove the check when the
user turns the option off.

Equivalent syntax

You can set a menu object’s Checked property instead of calling
Check.

This statement:

is equivalent to:

Examples

This statement displays a checkmark next to the menu item m_Grid in
the m_View drop-down menu on the menu bar m_Appl:

See also

Uncheck


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