Search online help in nav for "Dimensions", you will find that you can create a multidimensional array writing for example
4;8
in dimension property of the variable...
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
An n-dimensonal array can be imlplemented using one-dimension array.
For a 2-dimension array, try to implement following
Array1[j] is equivalent to Array2[i*j];
:shock: :shock:
it's not true!
array[i*j] means that element [3][2] will overwrite element [2][3]...
btw...you CAN create multidimensional arrays in nav (arrays or arraies? :oops: )
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso My Blog
As far as I remember, Navision can use up to 10 dimensions with a maximum of 1.000.000 (or 1.000.000.000) elements.
The variable-definition is as follows : In the Dimensions-property you have to define the dimensions as follows : N or N;M or N;M;O ....
To reference an element, you do as follows:
arrayElement[n] or arrayElement[n,m] or arrayElement[n,m,o].
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
An n-dimensonal array can be imlplemented using one-dimension array.
For a 2-dimension array, try to implement following
Array1[j] is equivalent to Array2[i*j];
:shock: :shock:
it's not true!
array[i*j] means that element [3][2] will overwrite element [2][3]...
btw...you CAN create multidimensional arrays in nav (arrays or arraies? :oops: )
Belias is correct , ... Array1[j] isnotequivalent to Array2[i*j];[/quote].. It was a mistake.
Suppose we have defined an Array1[m,n].... then referencing [i,j]th element in the array by implementing Array2[(i-1)*n + j)].
what I mean is Array1[i,j] is equivalent to Array2[(i-1)*n + j]
and true, we CAN create multidimensional arrays 8) in nav (the default one already in NAV)... O:)
Sandeep Prajapati Technical Consultant, MS Dynamics NAV
Answers
I didn't get you.. :shock: need some example..
Technical Consultant, MS Dynamics NAV
i wanna store 2 values in an array.
Use as
Array[1][1] := 'VALUE'
4;8
in dimension property of the variable...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
but how do i assign values into them?
can u plz give example??
maybe you'll need some
For i
For j
.....
cycle
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
For a 2-dimension array, try to implement following
Array1[j] is equivalent to Array2[i*j];
Technical Consultant, MS Dynamics NAV
ka malik....kaise hain
Navision Technical Consultant
Bangalore
anurag.atish@yahoo.com
:shock: :shock:
it's not true!
array[i*j] means that element [3][2] will overwrite element [2][3]...
btw...you CAN create multidimensional arrays in nav (arrays or arraies? :oops: )
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Take a look in Form 223 Resource Statistics
Regards
The variable-definition is as follows : In the Dimensions-property you have to define the dimensions as follows : N or N;M or N;M;O ....
To reference an element, you do as follows:
arrayElement[n] or arrayElement[n,m] or arrayElement[n,m,o].
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Belias is correct , ... Array1[j] is not equivalent to Array2[i*j];[/quote].. It was a mistake.
Suppose we have defined an Array1[m,n].... then referencing [i,j]th element in the array by implementing Array2[(i-1)*n + j)].
what I mean is Array1[i,j] is equivalent to Array2[(i-1)*n + j]
and true, we CAN create multidimensional arrays 8) in nav (the default one already in NAV)... O:)
Technical Consultant, MS Dynamics NAV