Hi All,
I have ready different opinions on using SETCURRENTKEY and it could be that this is not required in latest versions of BC (cloud) as the application does the optimization automatically to run the SQL statements. For example see below:
ValueEntry.SetCurrentKey(“Item Ledger Entry No.”);
ValueEntry.SetRange(“Item Ledger Entry No.”, Rec.“Entry No.”);
ValueEntry.SetRange(“Item Ledger Entry Type”, “Entry Type”::Sale);
if ValueEntry.Findlast() then
Do you need Setcurrent above?
Thanks