TableInsertRows

Description

Inserts one or more rows above or below the current text input position in the table.

Applies to

RichTextEdit control

Syntax

boolean rtename.TableInsertRows(integer position)
boolean rtename.TableInsertRows(integer position, long rows)

Argument

Description

position

The position to insert the new row(s). The following values are supported:

  • 1 -- Insert the row(s) above the row with the current text input position.

  • 2 -- Insert the row(s) below the row with the current text input position.

rows The number of rows to insert.

Return value

Boolean.

Returns true if the row(s) are inserted successfully. Returns false if the row(s) are not inserted or the current text input position is not in a table. Returns null if any argument is null.

Examples

The following example inserts 2 rows above the current position.

boolean lb_rtn
lb_rtn = rte_1. TableInsertRows (1,2)