TE Edit Control Java / HTML-JavaScript Help
Product page

TerGetField

Retrieve the text for a field name or field data.

int TerGetField( LineNo, ColNo, type)
int LineNo;The line number to examine. Set to -1 to use the current line and current column number.
int ColNo;The text column number to examine.
int type;Set to one of the following constants:
FIELD_NAME: Retrieve the field name.
FIELD_DATA:Retrieve the field data.

Upon a successful return from this method, the following information can be retrieved by using TerGetOutStr method:

String text;

sting to receive the text part for the field name or field data.

Upon successful return, You retrieve the field text (name or data) as following:

  text=tej.TerGetOutStr("Text");

Return Value: This function returns the length of the retrieved text.