GetContents Function (ConsoleClass)

Class

ConsoleClass.

Action

Returns the contents of the console.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

lsContents = Console.GetContents ()
Variable Description
lsContents The console contents. LIST OF STRING.

Notes

  • Each string in the returned list of strings corresponds to one row in the console.

Example 1

The following sample shows how you can use the index to define that you want to get the contents of the console window:
lsContents = Console.GetContents()