TE Edit Control Java / HTML-JavaScript Help
Product page

TerLocateInputField

Locate an input field in the document.

int TerLocateInputField( location, repaint)
int location;Use one of the following constants:
TER_FIRST:Search from the top of the file and locate the first occurrence of the input field.
TER_LAST:Search from the bottom of the file and locate the last occurrence of the input field.
TER_NEXT:Find the next occurrence of the input field.
TER_PREV:Find the previous occurrence of the input field.
TER_CUR:Current field with focus
boolean repaint:Set to true to repaint the screen after this operation.

Return Value: This function returns the object id of the located field when successful. Otherwise, it return 0.