TypeDescription.Based on types and qualifiers

Syntax:

New TypeDescription(<Types>, <NumberQualifiers>, <StringQualifiers>, <DateQualifiers>, <BinaryDataQualifiers>)

Parameters:

<Types> (required)

Type: Array; String.
The array of Type values containing types that are used in the object or a string containing type names separated by commas.

<NumberQualifiers> (optional)

Type: NumberQualifiers.
Number qualifiers describing the permitted values of the number type. If this parameter is not specified, then numbers cannot be stored.

<StringQualifiers> (optional)

Type: StringQualifiers.
String qualifiers describing the permitted values of the string type. If this parameter is not specified, then the string has unlimited length.

<DateQualifiers> (optional)

Type: DateQualifiers.
Date qualifiers describing allowed values of the Date type. If the parameter is not specified, both date components (date and time) are used.

<BinaryDataQualifiers> (optional)

Type: BinaryDataQualifiers.
Binary data qualifiers.

Description:

Creates the description of types based on specified types and qualifiers for Number, String, Date types.

Example:

//Complex type created form a string and a reference to //the Nomenclature catalog
TypesArray = New Array;
TypesArray.Add(Type("CatalogRef.Nomenclature"));
TypesArray.Add(Type("String"));
StringParameters = New StringQualifiers(20);

AllowableTypes = New TypeDescription(TypesArray, , StringParameters);


    

1C:Enterprise Developer's Community