Show contents 

Db > Db Assembly Interfaces > ILog > ILog.PutRecord

ILog.PutRecord

Syntax

PutRecord(FieldValues: Array);

Parameters

FieldValues is an array of values, organizing record that should be added to log.

Description

The PutRecord method adds a record to the log.

Example

Sub UserProc;
Var
    Mb: IMetabase;
    Log: ILog;
    Fields: ITableFields;
    Arr: Array[0..6Of variant;
Begin
    Mb:=MetabaseClass.Active;
    Log:=Mb.ItemById("NewLog").Bind As ILog;
    Fields:=Log.Fields;
    Arr[0]:=DateTime.Now;
    Arr[1]:="USER";
    Arr[2]:="Add a record";
    Arr[3]:=1;
    Arr[4]:="HELP";
    Arr[5]:="HELP";
    Arr[6]:="Test record";
    Log.PutRecord(Arr);
End Sub UserProc;

After executing the example, a new record is added into log with the NewLog identifier.

See also:

ILog