can anyone help me
How can i add values to Multidimensional Arrays
How can i add values to Multidimensional Arrays
Re: How can i add values to Multidimensional Arrays
Dear Mr.Sajith
You can use
Please note the usage of {} in aAdd() while creating single dimensional and multi dimensional arrays
For eg:
The array aNumbers will get created with the following Values
1,10,Element 1
2,20,Element 2
3,30,Element 3
4,40,Element 4
.........
.........
100,1000,Element 100
Regards
Anser
You can use
Code: Select all
aAdd(aArrayName,Value) // Single dimension array
aAdd(aArrayName,{Value1,Value2}) // Creates 2 dimensional array
aAdd(aArrayName,{Value1,Value2,Value3}) // Creates 3 dimensional array
For eg:
Code: Select all
Local aNumbers:={}
For 1:=1 to 100
aAdd(aNumbers,{i,i*10,"Element "+str(i,3)})
Next
1,10,Element 1
2,20,Element 2
3,30,Element 3
4,40,Element 4
.........
.........
100,1000,Element 100
Regards
Anser
Re: How can i add values to Multidimensional Arrays
Many Thanks for ur Replay, code works Fine
regards Sajith
regards Sajith