<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 24, 2015 at 4:36 PM, Dmitry Boyarintsev <span dir="ltr"><<a href="mailto:skalogryz.lists@gmail.com" target="_blank">skalogryz.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>hmm... or is DrawEdge declaration wrong having ARect be passed as "const" rather than "var"?<br></div><div><br></div></div></div></div></blockquote><div>it's var!</div><div>function DrawEdge(hdc: HDC; var qrc: TRect; edge: UINT; grfFlags: UINT): BOOL; external 'user32' name 'DrawEdge';</div><div><br></div><div>Imho, the compiler should be adjusted for these cases not to give a note. Since number of iterations is important in this case, not the iterator value.</div><div><br></div><div>thanks,</div><div>Dmitry</div><div> </div></div></div></div>