Xbasic

OBJECT.MENUITEMCHECK Function

Syntax

.Menuitemcheck(c menuitem ,l check_flag )

Arguments

menuitem

The text of a menu entry.

check_flag

Logical

.T. = Place checkmark.
.F. = Remove checkmark.

Description

Adds or removes a checkmark next to a menu entry in a form or browse.

The <OBJECT>.MENUITEMCHECK() method applies to:

Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.MENUITEMCHECK() method sets or removes the checkmark next to a menu entry in a menu loaded by a form or browse.

Example

The following example removes the checkmark from the Allow Edits entry in the Form menu.

dim ptr as P
ptr = form.load("Customer Information")
ptr.show()
ptr.MenuItemCheck("Allow Edits", .F.)

Limitations

Desktop applications only.

See Also