Table of Contents

TatScripterWatch Class

TatScripterWatch holds information about a watch in scripter system, for debugging purposes. It holds the expression of the watch, calculate its value, among other properties.

Syntax

Unit: atScript

TatScripterWatch = class(TCollectionItem);

Methods

Name Description
Evaluate Call Evaluate method to update the value of the watch. The value can be retrieved using LastResult property.
if the watch is not enabled, nothing happens.

Properties

Name Description
Enabled Enabled property enables/disables the current watch. If the watch is disabled, calling Evaluate does nothing and LastResult is never updated.
Expression Expression property holds the string which contains the expression of the watch to be evaluated. Expression can be a variable name, a constant or a complex expression. Examples: 'MyVar', '10 + 20', 'MyArray[c]'.
LastResult Gets or sets the calculated value from the most recent evaluation of this watch.
WatchStatus WatchStatus is a read-only property which contains the current status of the watch. For example, you can use it to check if the watch was already evaluated, or if the expression was incorrect (raising a compiling error).