Setting the default value for cells in a table columnΒΆ

table_set_default_data()

Set default value for cells in a table column


SYNTAX

table_set_default_data(table_id, column, data)

Sets a default value that replaces the currently displayed value whenever a cell in the specified column is edited. Column numbering starts at 1, the far left column.

If desired, this function can be called during the EV_FOCUS_CELL event, to reset the default value to one that is appropriate for the cell receiving focus.

The data can be a constant, string, field or expression.

The function returns OKAY (0) if the operation was successful, otherwise a negative value.


RELATED TOPICS

Tables

Listbox and table functions

Table events and functions