GetOption Function

Class

AgentClass class.

Action

Returns the value of the specified Silk Test Classic Agent option.

Syntax

aValue = Agent.GetOption (Option)
Variable Description
aValue The value of the option. The type depends on the option.
Option An agent option specified with one of the constants defined for the AGENTOPTION enumerated data type. For a list, see Agent Options.

Notes

GetOption returns the value of the Agent option you specify. The type of the return value varies depending on the option you specify. You can set the options interactively through the Agent Options dialog box. The value returned with GetOption overrides the value set in the Agent Options dialog box.

Example

INTEGER iCount
iCount = Agent.GetOption(OPT_BITMAP_MATCH_COUNT)