TableSetCellTextType

Description

Sets the type of content in a table cell in the RichTextEdit control.

The text type of the table cell may be txStandard (for text content) or txNumber (for number content). If the type is txstandard, the content in the cell is interpreted as text and it is displayed as it is. If the type is txnumber, the content in the cell is interpreted as a number, with the period character (.) being defined as decimal separator, and the comma character (,) is defined as thousands separator.

Applies to

RichTextEdit control

Syntax

boolean rtename.TableSetCellTextType(long tableID, long row, long column, integer textType)

Argument

Description

tableID

The unique ID that identifies the table.

row The row number of the cell.
column The column number of the cell.
textType

The text type of the content in the cell. The following types are supported:

  • 0 -- The txStandard type, which means that the content is text.

  • 1 -- The txNumber type, which means the content in the cell shall be interpreted as a number, with the period character (.) being defined as decimal separator, and the comma character (,) is defined as thousands separator.


Return value

Boolean.

Returns true if it succeeds, and false if it fails. If any argument is null, return null.

Examples

The following example sets the text type to number in the specified cell:

long ll_tableid
boolean lb_rtn

ll_tableid = rte_1.TableInsert(3,4)
lb_rtn = rte_1.TableSetCellTextType(ll_tableid,2,2,1)