LeadingCalculationTypes.<Chart of calculation types name>.Add

Syntax:

Add()

Returned value:

Type: LeadingCalculationTypesRow.

Description:

Adds a row to the end of the tabular section.

Availability:

Server, thick client, external connection.

Note:

The method can be used only when the tabular section is obtained from an object's property. If the tabular section is obtained from a reference property (or selection property), using this method would cause a runtime error.

Example:

Procedure SetLeadingCalculation(CalculationType, LeadingCalculationTypes)
    CT = CalculationType.GetObject();
    CT.LeadingCalculationTypes.Clear();
    If 
LeadingCalculationTypes <> Undefined Then
        For each Item In LeadingCalculationTypes Do
            NewRow = CT.LeadingCalculationTypes.Add();
            NewRow.CalculationType = Item.Value;
        EndDo
;
    EndIf
; 
    CT.Write();
EndProcedure


    

1C:Enterprise Developer's Community