TableGetCellTextType

Description

Gets 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), set in TableSetCellTextType. 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

integer rtename.TableGetCellTextType(long tableID, long row, long column)

Argument

Description

tableID

The unique ID that identifies the table.

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

Return value

Integer.

Returns 0 if the text type is txStandard (for text content). Returns 1 if the text type is txNumber (for number content). Returns -1 if it fails. Returns null if any argument is null.

Examples

The following example gets the text type of the specified cell:

long ll_tableid
integer li_rtn

ll_tableid = rte_1.TableInsert(3,4)
li_rtn = rte_1.TableGetCellTextType(ll_tableid,2,2)
messagebox("",string(li_rtn))