real earnings[10*3] = 30 Lines, 1 column.
Regards
"Harry (Harshawardhan Deshpande" <[EMAIL PROTECTED]> wrote:
hi****NoYes e[100,10]; (what it means)***
try this jobstatic void Job1(Args _args)
{
real y [2,2];
;
y[1] = 1;
y[2] = 2;
y[3] = 3;
}now try this jobstatic void Job1(Args _args)
{
real y [,2];
;
y[1] = 1;
y[2] = 2;
y[3] = 3;
}*******into an array containing (d1*d2*...*dk) elements
can any body tell me whats going on here.......*****
Axapta arrays have a single dimension. This is a work around in case you want to use multi-dimension arraysregardsharry
adrsh gupta <[EMAIL PROTECTED]> wrote:can any body tell me about this array concepts::::--------
// A dynamic array of dates, with only 10 elements in memory
date d[,10]; (what it means)
// A fixed length array of NoYes, with 100 elements and 10 in memory
NoYes e[100,10]; (what it means)
-----------------------------------------------------------------------------------------------------
multiple array indicies:--------
real earnings[10*3];
When you wish to refer to earnings[i,j], you simply write
earnings[(i-1)*3 +j].
You can easily wrap this into a macro:
#localmacro.earningIndex
(%1-1)*3+%2
#endmacro
so you could write
earnings[#earningIndex(i,j)]
The above scheme may easily be extended to any number of dimensions. The element a[i1, i2, ..., ik] can be accesses by computing the offset
(i1 - 1)*d2*d3*..*dk +
(i2 - 1)*d3*d4*...*dk + .... +
(ik-1 -1)*dk +
(ik-1)
into an array containing (d1*d2*...*dk) elements
can any body tell me whats going on here.......
---------------------------------------------------------------------------------------------------------
if any body know about it please tell me
Regards
Adrsh Gupta
axapta technical consultant
hero corporates
india
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Yahoo! India Matrimony: Find your partner online.
Go to http://yahoo.shaadi.com
Sharing the knowledge on Axapta.
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.