Print all rows in a table using x++

    Hi, I am writing the following code. However it is not iterating through all the records in my table can anyone please help me here?

   PdsBatchAttributes x;
        while select * from x
        {
            info(x.InventBatchId);
           
        }

Related
Recommended