Hi guys, I ave written some code which should delete my buffer table before filling the entries in, but its not doing it.
Here's my code:
TempBuffer.DELETEALL;
ActualTable.SETRANGE("Type",ActualTable."Transaction Type"::"Bills");
TempBuffer.SETCURRENTKEY("Entity ID");
TempBuffer.SETRANGE("ID",Get(COMPANYNAME))
END;
Any ideas why?
0
Answers
MESSAGE(FORMAT(TempBuffer.COUNT));
TempBuffer.DELETEALL;
MESSAGE(FORMAT(TempBuffer.COUNT));
If the second message isn't zero, then you have a filter set somewhere on TempBuffer. Do this:
TempBuffer.RESET;
TempBuffer.DELETEALL;
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/