Dec 3, 2013
Array in AX
Arrays hold the values of any single type
static void testArray(Args _args)
{
Array ary = new Array (Types::String);
int i;
;
ary.value(1, "abc");
ary.value(2, "xyz");
ary.value(5, "ijk");
ary.value(3, "lmn");
info(strfmt("%1", ary.toString()));
info(strfmt("%1", ary.definitionString()));
info(strfmt("%1", ary.lastIndex())); // Return the last index value of the Array
for(i=1;i<=ary.lastIndex();i++)
{
info(strfmt("%1", ary.value(i)));
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment