TypeDescription.Based on the TypeDescription object

Syntax:

New TypeDescription(<SourceDescriptionOfTypes>, <AddedTypes>, <RemovedTypes>, <NumberQualifiers>, <StringQualifiers>, <DateQualifiers>, <BinaryDataQualifiers>)

Parameters:

<SourceDescriptionOfTypes> (optional)

Type: TypeDescription.
Source description of types that will serve as the basis for the new description.

<AddedTypes> (optional)

Type: Array; String.
Array of Type values consisting of types that will be used in the object, or a string containing values of type names, separated by commas.

<RemovedTypes> (optional)

Type: Array; String.
Array of Type type values (or a string containing values of type names, separated by commas) consisting of types that will be removed from the source description set as the first parameter.

<NumberQualifiers> (optional)

Type: NumberQualifiers.
Number qualifiers describing the permitted values of the number type.

<StringQualifiers> (optional)

Type: StringQualifiers.
String qualifiers describing the permitted values of the string type.

<DateQualifiers> (optional)

Type: DateQualifiers.
Date qualifiers describing allowed values of the Date type.

<BinaryDataQualifiers> (optional)

Type: BinaryDataQualifiers.
Binary data qualifiers.

Description:

Creates a type description based on another type description by adding/removing types. If a new qualifier is not specified, the qualifiers for the source description will be kept.

Example:

// Let's expand the AllowableTypes definition by new //types 
Array = New Array;
Array.Add(Type("CatalogRef.Methods"));
Array.Add(Type("Number"));
PlusMinus = AllowedSign.Nonnegative;
NumberQualifier = New NumberQualifiers(10, 2, PlusMinus);

AllowableTypes = New TypeDescription(AllowableTypes, Array, , NumberQualifier);


    

1C:Enterprise Developer's Community