TE Edit Control Java / HTML-JavaScript Help
Product page

TerFindHlinkField

Locate the next hyperlink field.

boolean TerFindHlinkField( CodePart1, CodePart2, pLine, pCol)
String CodePart1;The part of the hyperlink code or url to search for
String CodePart2;Another part of the hyperlink code or url to search for
int pLine;

The line number to start the search.

Upon successful return, you can retrieve the final line number value as following:

  line=tej.TerGetOutInt("Line");
int pCol;

The column number to start the search.

Upon successful return, You retrieve the final column number as following:

   Col=tej.TerGetOutInt("Col");

Description: This function examines the hyperlinks in the document. A hyperlink is matched if either CodeString1 or CodeString2 is found in the hyperlink code or url.

Return Value: This function returns true when a hyperlink is located. On successful search, the line and column number of the located hyperlink can be retrieved as following:

if (tej.TerFindHlinkField("www.mysite.com","",0,0) {
   line=tej.TerGetOutInt("Line");
   column=tej.TerGetOutInt("Col");
}