TypeDescription.Types

Syntax:

Types()

Returned value:

Type: Array.
The array of Type values consisting of the types used.

Description:

Obtains the types that are used by the object.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Example:

// Fill the list of documents types by indicated form item
// Item - form item which has complex type
DocumentTypeList = New ValueList;
For 
each DocumentType In Item.ValueType.Types() Do
    DocumentRef = New(DocumentType);
    Name = DocumentRef.Metadata().Name; 
    Synonym = DocumentRef.Metadata().Synonym;
    DocumentTypeList.Add(Name, Synonym);
EndDo
;


    

1C:Enterprise Developer's Community