Hello Subbu,

 

Here is an example showing how to get the array size

 

 

    array       i;

    ;

 

    i   = new array(types::Integer);

    i.value(1,3);

    i.value(2,7);

    i.value(3,5);

    i.value(4,9);

 

    print i.lastIndex();

    pause;

 

A good place to find information like this is in the help files. (pressing F1).

 

Barry.

 


From: Axapta-Knowledge-Village@yahoogroups.com [mailto:Axapta-Knowledge-Village@yahoogroups.com] On Behalf Of Subrahmanyam, Mamidi
Sent: Thursday, 2 June 2005 2:42 AM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] Simple Question :-) : what is the array lenght?

 

Hi,

 

In C++, I have a functional called Sizeof() function to retrieve the size of an array.

 

i.e:

 

Int x[6];

 

cout<<  sizeof(x) will print '6';

 

 

 

Is there any similar function in X++ to retrive the size of the array.

I searched the functions/reserved words area and could not find similar function for a moment.

 

Does anyone know how to retrieve the size of the array?.

 

Appreciate help.

 

Thanks,

Subbu

 

 

 

 

 


Discover Yahoo!
Have fun online with music videos, cool games, IM & more. Check it out!

Sharing the knowledge on Axapta.



Sharing the knowledge on Axapta.



Yahoo! Groups Links

Reply via email to