The array example Barry shows is part of
the Axapta Foundation classes, for the more simple arrays that you are looking
at Subbu use the method Dimof(VaraibleName) So ….. Int x[6]; Print dimof(x); Pause; Remember Axapta is base 1, and not base 0
on array indexes. -
From:
Axapta-Knowledge-Village@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Bayliss, Barry 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: 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!
Sharing the knowledge on Axapta. Yahoo! Groups Links
|