Need a little help. How to SUM Array store data? Below example works but what if the Array is very large like 200 so is there any simply way to SUM data instead of writing code to add each Array.
Code: Select all
array: AvArray[6](0);
AvArray[1]=10;
AvArray[2]=120;
AvArray[3]=14;
AvArray[4]=123;
AvArray[5]=133;
AvArray[6]=105;
For Value11= 1 to 3 begin
value1= AvArray[1]+ AvArray[2]+ AvArray[3]+ AvArray[4]+ AvArray[5]+ AvArray[6];
Print(D," ",AvArray[value11]," ",Value1);
end;
Thanks