<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Calibri, Arial, Verdana, sans-serif; font-size: 12pt;"><div>Actually, the original code used two VARs, not typed CONST. One VAR was initialized and one was not. I think this is a bug and should be fixed.<br></div><br>As Jonas already pointed out:<div><br></div><div>"var i : longint = 0;" is internally handled using the same code path as <br></div><div>"const i : longint = 0", and typed constants cannot be used as counter <br></div><div>variables. This is indeed probably a bug.<br></div><br><br><div style="" class="zmail_extra"><br><div id="Zm-_Id_-Sgn1">---- On Wed, 11 Sep 2019 12:40:57 -0400 <b> <<a target="_blank" href="mailto:scoxbike@shaw.ca">scoxbike@shaw.ca</a>></b> wrote ----<br></div><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0px 0px 0px 5px;"><div><div dir="auto">Yes, off topic. <div>The initial poster's code had the loop variable declared as an initialized constant. Not as a true variable. No FPC in hand, I can't test if setting 'assignable typed constants = true' would permit the use of an initialized typed constant or not. <br></div></div></div></blockquote></div><div><br></div></div><br></body></html>