How should you iterate over multiple records in X++?

You are writing an X++ method.

You need to perform the same logic for multiple records in the database.

How should you iterate over multiple records in X++?
A . Declare a table buffer variable, and then write a "while select" statement to iterate through each record.
B . Declare a shared variable for the table, and use the next() method to read each record.
C . Declare a RecordSortedList variable for the table, and use the next() method to read each record.
D . Declare an enumerator for the table, and call the moveNext() method to read each record.

Answer: A

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments