Skip to content

Log_Status - StatusDbLog

Creates a new record in the status-log file

Type: Procedure

Parameters

Parameter Type Description
Txt String The text to be added to the log

Syntax

Procedure Log_Status String Txt

Call Example

Send Log_Status Txt

Description

Log_status creates a new record in the status-log file. It sets the following database values:

Col 1 Col 2
Statlog.Description txt
Statlog.Date Current date
Statlog.Time Current time in HH:MM string format

It also sends the message onNewRecord. This is called after the information has been moved to the buffer but before the save. You can use this hook to customize the record data before the save.

During the execution of this procedure, the error handler is temporarily set to this object. If an error occurs inside this procedure, the error will be ignored. This was done to prevent recursion. Often status logging is used to record errors.