IMetabaseObjectParamValue.IsArray

Syntax

IsArray: Boolean;

Description

The IsArray property returns whether multiple value is installed for the parameter.

Example

Sub Main;

Var

MB: IMetabase;

Pars: IMetabaseObjectParams;

Vals: IMetabaseObjectParamValues;

Val: IMetabaseObjectParamValue;

B: Boolean;

Obj: IMetabaseObject;

Ar: Array[0..2] Of Variant;

Begin

MB:=MetabaseClass.Active;

Obj:= MB.Item(MB.GetObjectKeyById("OBJTEST")).Edit;

Pars:=Obj.Params;

Vals:=Pars.CreateEmptyValues;

Val:=Vals.Item(0);

Ar[0]:="01.01.2001";

Ar[1]:="01.01.2002";

Ar[2]:="01.01.2003";

Val.Value:=Ar;

B:=Val.IsArray;

End Sub Main;

On executing the example an array of parameter values is assigned for the first parameter of the OBJ3333 object and the "b" variable stores an indicator that defines whether the parameter takes up multiple value.

See also:

IMetabaseObjectParamValue