IsArray: Boolean;
The IsArray property returns whether multiple value is set for a parameter.
Executing the example requires that the repository contains a parametric object with the OBJTEST identifier.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Pars: IMetabaseObjectParams;
Vals: IMetabaseObjectParamValues;
Val: IMetabaseObjectParamValue;
Ar: Array[0..2] Of Variant;
Begin
MB := MetabaseClass.Active;
MObj := MB.Item(MB.GetObjectKeyById("OBJTEST")).Edit;
Pars := MObj.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;
Debug.WriteLine(Val.IsArray);
End Sub UserProc;
After executing the example, the array of values is set for the first object parameter, and the development environment console displays whether the parameter takes multiple value.
See also: