Array.typeId Method [AX 2012]
Returns the data type of the values in the array.
The following example tests whether a particular array element exists. If it does not exist, the typeId method is used to specify the type of the new value that should be added to the array.
public anytype getArrayValue(Array a, int _index)
{
if (! a.exists(_index))
{
a.value(_index,nullValueFromType(a.typeId()));
}
return a.value(_index);
}
Community Additions
ADD
Show: