End Edit - GRID SENDMSG() Function 26

Syntax

TF$=SENDMSG(sysgui,id,26,mode,$${,context{,ERR=lineref}})

Description

For BBj-specific documentation, seeEnd Edit - GRID SENDMSG() Function 26 BBj.

This function ends editing mode. Typically, this function is executed in response to an EDITKILL Notify event (notify code 7), which is generated when a cell in edit mode loses focus.

Parameter

Description

sysgui

SYSGUI channel.

id

Grid control ID.

26

Number of this SENDMSG() function.

mode

In Visual PRO/5 Revisions previous to 2.22 and 3.01, the mode is always zero.

In Visual PRO/5 Rev 2.22 and 3.01 and later, use the following:

0 Send the EDITKILL Notify event if the grid is in edit mode.

1 Do not send the EDITKILL notify event.

$$

Always null.

Application programs may also end editing mode in response to keystrokes such as arrow keys, the Enter key, the <Home> key, etc. The return value is a one-byte string that indicates the success or failure of an operation; $01$ indicates success, $00$ indicates failure.

See Also

Interface CommonGrid::setDefaultGridStyle