You are here

Looping

Subscribe to Syndicate
  • The For list.$line to list.$linecount step 1 form is generally preferred for loops for the best blend of efficiency and readability. While…End While and Repeat…Until are slower and should only be used when required. In performance sensitive areas the construct below is preferred.

    If using this construct, at the end of the loop, you must do a 'set current list' as a guard action and the setting of the list must be in a reversible block.

  • Any long running loops should be nominated for conversion or re-factoring into SQL stored procedures if they perform any database access.