<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 5, 2015 at 6:15 AM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<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"><span>
On Wed, 4 Mar 2015, silvioprog 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">
Hello,<br>
What do you think about a TDataSetEnumerator class in the DB unit? Something like this:<br>
</blockquote>
<br></span>
Good idea. I never implemented it because I didn't know what to return.<br>
But maybe returning the dataset itself is not a bad idea.<br></blockquote><div><br></div><div>=)<br></div><div><br></div><div>The first idea was sent from Gilson Nunes via Lazarus-BR group, but he was iterating in the recno, so I suggested him to iterate on the dataset cursor, because most of the lists use their own item as iterator. =)</div><div> </div><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">
If you implement it using the enumerator operator, you can implement and test it yourself without needing to change the db unit.</blockquote><div><br></div><div>Using the 'operator' keyword? I'll try a test. (it will be my first usage of this keyword hehe)</div><div> </div><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"> Once you're satisfied, we can transfer the code to the db unit.</blockquote></div><div><br></div><div>Very good. I'll make some tests and send a patch to bugtracker.</div><div><br></div><div>Thank you!<br></div><div><br></div>-- <br><div>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div></div>