Develop > Programming > System Language reference > List: rtecalls > rtecall("counter") function

rtecall("counter") function

A RAD function that turns counters on or off for the current session. Other users are not affected.

Function

rtecall("counter")

Format

$L.success.flag= rtecall($L.fnc.name, $L.return.code, $L.switch)

Parameters

The following parameters are valid for the rtecall("counter") function:

Parameter Data type Description
$L.success.flg Logical Indicates whether or not the function was successful.
$L.fnc.name String The name of the sub-function to call, in this case "counter".
$L.return.code Number Provides a more detailed return code.
$L.switch Number The value is either one (1), indicating counters on, or zero (0), indicating counters off.

Factors

If the $L.success.flg is false, the function failed. If it is true, the function succeeded.

Example

 $L.success.flg=rtecall("counter", $L.return.code, 1) to turn on counters
 $L.success.flg=rtecall("counter", $L.return.code, 0) to turn off counters