SETRANGE AND SORT MY RECORD OF DATATYPE CODE

Hello Friend am working on a report and i have a list of account numbers i want to setrange for to sort but am getting a run time error some assistance  please 


GLEntry.SETRANGE("G/L Account No.",'100000','199999');
REPEAT
GLEntry.FIND('-');
UNTIL GLEntry.NEXT <= 0;

 

Related
Recommended