atPut(index: Integer64;
value: MemberType) updating;
The atPut method of the Array class places an entry in the array of the object specified in the value parameter at the position specified by the index parameter; for example:
foreach fault in app.myCompany.allFaults do
if fault.isOpen then
days := fault.getDaysOpen;
if days < 8 then
ia.atPut(1, ia.at(1) + 1);
elseif days < 31 then
ia.atPut(2, ia.at(2) + 1);
elseif days < 61 then
ia.atPut(3, ia.at(3) + 1);
else
ia.atPut(4, ia.at(4) + 1);
endif;
endif;
endforeach;
currentList.atPut(100, cust);
You must specify a positive value in the index parameter.
The following example shows the use of the bracket ([]) operators to assign values to an array.
currentList[100] := cust;
If the specified index is greater than the size of the array, the array is expanded.