GetDocumentText

Description:
Get the Text of the currently displayed Document.

Format:
GetDocumentText (integer Session ID (optional))

Parameters:

Integer

Session ID (optional)

Browser Occurrence Number.
First Browser occurrence is 1
Default value is 1

Return Value:

String

Text

Text of the current Document.

Usage:
Use this function to get the Text (HTML is removed) of the Document currently displayed in the specified Browser. The Text is what the Browser determines the text is and may not be formatted exactly as expected.

Example 1:
Get the Text of the Document displayed in the default Browser occurrence.

string strText

strText = GetDocumentText ()

Example 2:
Display a message if the Text indicates a bad link in the second occurrence of the Browser.

String strText

strText = GetDocumentText (2)
If Pos (strText, 'Not Found') > 0
 MessageBox ('Error', 'Dead Link')
EndIf

Hosted by www.Geocities.ws

1