TypeDescription

Properties:

BinaryDataQualifiers
DateQualifiers
NumberQualifiers
StringQualifiers

Methods:

AdjustValue
ContainsType
Types

Constructors:

Based on the TypeDescription object
Based on types and qualifiers

Description:

This object is used to manage the allowed value types. It is generally used to assign values corresponding to the properties of other objects. et of possible types and qualifiers of primitive types are set during object creation.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).
Serializable. The given object may be serialized to/from XML. Can be used in attributes of managed form. The given object may be serialized to/from XDTO. The XDTO type correspoding to this object is defined in {http://v8.1c.ru/8.1/data/core} namespace. XDTO type name: TypeDescription.

Example:

// Create type description for a value table
QN = New NumberQualifiers(12,2);
QS = New StringQualifiers(20);
Array = New Array;
Array.Add(Type("Line"));
TypeDescriptionS = New TypeDescription(Array, , QS);
Array.Clear();
Array.Add(Type("Number"));
TypeDescriptionN = New TypeDescription(Array, , ,QN);

// Create a value table
ValueTable = New ValueTable;
// add three columns to a value table
ValueTable.Columns.Add("Department",TypeDescriptionS,"Department",20);
ValueTable.Columns.Add("Employee",TypeDescriptionS,
        "Surname",20);
ValueTable.Columns.Add("Salary",TypeDescriptionN,"Salary",10);


    

1C:Enterprise Developer's Community