Showing posts with label How to get the number of elements in the list in AX. Show all posts
Showing posts with label How to get the number of elements in the list in AX. Show all posts

Thursday, April 22, 2021

How to get the number of elements in the list in AX

{ 
    List il = new List(Types::Integer); 
 
    il.addStart(1); 
    il.addStart(2); 
    il.addStart(3); 
    if (il.elements() != 3) 
    { 
        print "Something is wrong..."; 
    } 
}

Table browser URL in D365FO

Critical Thinking icon icon by Icons8