Versions
All

Purpose
To count records.

Syntax
Code:
$L.success.flag=rtecall("count", $L.return.code, $L.filevar, $L.query, $L.count.result)
  • $L.success.flag
    not used
  • $L.return.code
    returncode of the call
  • $L.filevar
    the variable in which to store the records retreived, updated or added
  • $L.query
    Query
  • $L.count.result
    Number of records

Example
Code:
$L.success.flag=rtecall("rinit", $L.return.code, $L.filevar, "operator") 
$L.query="last.login>='"+date(tod())+"'"
$L.success.flag=rtecall("count", $L.return.code, $L.filevar, $L.query, $L.count.result)
Initialises the operator file in filevariable $L.filevar and counts operators that has logged in today.