ValueTableColumnCollection.Count

Syntax:

Count()

Returned value:

Type: Number.

Description:

Obtains the number of value table columns.

Availability:

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

Example:

// Check for identity of values of two tables with identical structures
Function TablesAreIdentical (Table1, Table2)
    For 
= 0 To Table1.Columns.Count()-Do
        Array1 = Table1.UnloadColumn(K);
        Array2 = Table2.UnloadColumn(K);
        // ArraysAreIdentical - check for identity of arrays
        If NOT ArraysAreIdentical(Array1,Array2) Then
            Return False;
        EndIf
;     
    EndDo
;    
    Return 
True;
EndFunction


    

1C:Enterprise Developer's Community