Db > Db Assembly Interfaces > ILog > ILog.PutRecord
PutRecord(FieldValues: Array);
FieldValues is an array of values, organizing record that should be added to log.
The PutRecord method adds a record to the log.
Sub UserProc;
Var
Mb: IMetabase;
Log: ILog;
Fields: ITableFields;
Arr: Array[0..6] Of 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: