Performance difference between ISEMPTY and FINDFIRST

Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
When you only want to know if a table contains no records (with applied filters) and you don't need the actual record(s), what to use: ISEMPTY or FINDFIRST?
recMyRec.SETCURRENTKEY(...);
recMyRec.SETRANGE(Field,...);
IF recMyRec.ISEMPTY THEN
  ...
or
recMyRec.SETCURRENTKEY(...);
recMyRec.SETRANGE(Field,...);
IF NOT(recMyRec.FINDFIRST) THEN
  ...
Is there a performance (or other) difference between the two?
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)

Answers

Sign In or Register to comment.