First pass conversion of NAV Patterns

This commit is contained in:
Jeremy Vyska 2021-10-22 00:23:03 +02:00
parent 1341938262
commit 6b32107a72
325 changed files with 11946 additions and 0 deletions

View file

@ -0,0 +1,29 @@
+++
title = "findset-findfirst-findlast.md"
weight = 600
+++
FINDSET, FIND('+') or FIND('-') should only be used when NEXT is used and vice versa.
Bad code
IF Cust.FIND('-') THEN
ERROR(CustIsBlockErr)
Good code
IF Cust.FINDFIRST THEN
ERROR(CustIsBlockErr)
Bad code
IF Cust.FINDFIRST THEN
REPEAT
...
UNTIL Cust.NEXT = 0;
Good code
IF Cust.FINDSET THEN
REPEAT
...
UNTIL Cust.NEXT = 0;