I am still confused as to what the find function does.
There is a report that has an integer table and the variable of WhseEntry as a record using subtype Warehouse Entry.
In the interger table; in the PreDataItem() trigger, it says the following:
Integer - OnPreDataItem()
CLEAR(Location);
WhseEntry.RESET;
IF NOT WhseEntry.FIND('-') THEN
CurrReport.BREAK;
What does this mean ??????? !!!!!!
Does it just say, if you cannot find first record (at least one record) then break the report ?
I read this, but is not very helpful.
https://msdn.microsoft.com/en-us/library/dd301096.aspx
Thank you everyone in advance !
Answers
FINDFIRST - Retreives First record in the table
FINDLAST - Retreives Last record in the table
FIND('-') - Retrieves all the records in the table and cursor is in first record
FIND('+') - Retrieves all the records in the table and cursor is in lastrecord
The code IF NOT WhseEntry.FIND('-') THEN
CurrReport.BREAK; means that the report processing is stopped when there is no record in WhseEntry entry table
https://msdn.microsoft.com/en-us/library/dd354980.aspx
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/