hello sir,
check this out,
what do you think about this one.
please tell me your suggestion
 
NoYes e[100,10] = 1000 position. 100 Lines, 10 Columns
date d[,10] = 10 Lines, 1 column.
real earnings[10*3] = 30 Lines, 1 column.
earnings[(i-1)*3 +j] = equal at the above, N Lines, 1 column.
earnings[#earningIndex(i,j)] = N Lines, N Columns

 

Regards

Adrsh Gupta

technical consultant

hero corporates

india

 



Varden Morris <[EMAIL PROTECTED]> wrote:
Hi
 
Axapta does not use multi-dimensional array.
 

// A dynamic array of dates, with only 10 elements in memory

date d[,10]; (what it means)

The above means that you have an array where you may keep on adding as many elements as memory and hard disk storage allow. Only 10 of the elements will be kept in memory at any time while the others will be stored on disk and fetched when required. This is a way to minimize on memory usage and maximize on the use of hard disk space.

// A fixed length array of NoYes, with 100 elements and 10 in memory

NoYes e[100,10]; (what it means)

The above means that you have an array with a maximum of 100 elements which means that you cannot add any more element to this array like the example above. Out of the 100 elements only 10 will be kept in memory at any one time while the others will be stored on disk and retrieve as needed.


Varden Morris

Senior Developer

WellPoint Systems Inc.
Suite 2000, 500 - 4th Ave SW
Calgary
, Alberta, Canada
T2P 2V6

 

(403) 444-5848 direct

(403) 444-3900 main

www.wellpoint.ca


"Harry (Harshawardhan Deshpande" <[EMAIL PROTECTED]> wrote:
hi
 

****NoYes e[100,10]; (what it means)***

try this job
 
static void Job1(Args _args)
{
    real y [2,2];
    ;
    y[1] = 1;
    y[2] = 2;
    y[3] = 3;
}
 
now try this job
 
static 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 arrays
 
regards
 
harry

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

__________________________________________________
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




Reply via email to