Showing posts with label Lazarus. Show all posts
Showing posts with label Lazarus. Show all posts

Sunday, September 1, 2013

Freepascal/Lazarus decimal rounding vs Excel rounding


I found this thread quite useful, regarding decimal rounding in freepascal/Lazarus.

This article also describes a unit somebody has written that handles decimal values more accurately (and also more like .net does (much as it hurts me to say this!))


ps: Comments and/or links to this article are most welcome!

Sunday, August 11, 2013

How to achieve shift-click (contiguous) select on a Lazarus TDBGrid


Please follow this link to my post in the Lazarus forum

ps: Comments and/or links to this article are most welcome!

Thursday, July 18, 2013

FortesReports: Misc info

This post will accumulate info on FortesReports, the reporting tool used in Lazarus/FreePascal.

Once enough info has been collected and cleaned up, it will be passed on to the Lazarus group.
------------------------

- Grouping and ORDER BY
Groups in a report do not force a sort by that field.
If you have a SELECT f1, f2 FROM dooda ORDER BY f2
and create a report which groups by f1, you will end with multiple breaks, as f1 changes values while moving through the recordset.
To avoid that, you will need to SELECT f1, f2 FROM dooda ORDER BY f1, f2



ps: Comments and/or links to this article are most welcome!