diff --git a/content/docs/patterns/template-method-pattern/index.md b/content/docs/patterns/template-method-pattern/index.md index ba7fde3f..3f7df048 100644 --- a/content/docs/patterns/template-method-pattern/index.md +++ b/content/docs/patterns/template-method-pattern/index.md @@ -110,9 +110,9 @@ codeunit 50001 SalesHeaderExport implements IDataExport //Generate Exportdata here end; - procedure NextLine(): Boolean + procedure NextLine(Steps : integer): Boolean begin - exit(SalesLines.Next() > 0); + exit(SalesLines.Next(Steps) <> 0); end; procedure Finish()