Set Single Cell - GRID SENDMSG() Function 22
Syntax
TF$=SENDMSG(sysgui,id,22,column_number,cell${,context{,ERR=lineref}})
Description
This function displays the value in cell$
in the specified column on the current row.
|
Parameter |
Description |
|---|---|
|
sysgui |
SYSGUI channel. |
|
id |
Grid control ID. |
|
22 |
Number of this SENDMSG() function. |
|
column_number |
Column number of the cell. (Column numbering is zero-based.) |
|
cell$ |
Value to place in grid. |
This function works on heading grids as well as main grids. The return
value is a one-byte string that indicates the success or failure of the
operation; $01$ indicates success, $00$ indicates failure. If column_number
is higher than the highest column number in the grid, the function generates
an !ERROR=17.
System default style, alignment, and colors are used. If any nondefault display attributes had been set in a cell with Draw Cell - Grid SENDMSG() Function 54, those attributes are reset to defaults by this function.
Example
The following example creates a grid and uses SENDMSG() Function 22 to display data in each column of each row:
|