InformationRegisterRecordSet.<Information register name>.Clear

Syntax:

Clear()

Description:

Deletes all records from the set.

Availability:

Server, thick client, external connection, Mobile application (server).

Example:

Query = New Query;
Query.Text ="<query text>";
RecordsSet = InformationRegisters.OrganizationsWorkers.CreateRecordSet();
SelectionByRecorder = Query.Execute().Choose();
While 
SelectionByRecorder.NextByFieldValue("Recorder") Do
    RecordsSet.Filter.Recorder.Set(SelectionByRecorder.Recorder);
    While 
SelectionByRecorder.Next() Do
        FillPropertyValues(RecordsSet.Add(), SelectionByRecorder);
    EndDo
;
    RecordsSet.Write(); // recordset stays unfilled after writing
    RecordsSet.Clear();
EndDo
;


    

1C:Enterprise Developer's Community