News for 2012

New floating point versions of TPoint and TRect and helper routines added to Code Snippets Database
The Code Snippets Database has been updated with two new record types: TPointF and TRectF which are floating point versions of the Delphi VCL's TPoint and TRect respectively. I've also provided "constructor" routines for each of these structures, named PointF and RectF. There's also a floating point version of the Bounds function, named BoundsF.
12 June 2012
New "Documentation" menu item that displays documentation wiki
Now that has settled down into a repository for all sorts of documentation, a link to it has been added on the main site's main menu.
23 May 2012
Updated Code Snippets database with two new and one revised maths routines
The Mathematics category of the Code Snippets database has been updated. The GCD routine has been updated and correctly credited. There's a new LCD (Least common divisor) and a new DecimalToFraction routine.
01 May 2012
New "Fractions" library project on GoogleCode
There's a new branch of the Google Code ddab-lib project named "fractions". It contains an advanced record-with-methods for processing fractions: lots of operator overloads and common operations. There's not been a release yet, and there's no page for it on The unit has passed lots of DUnit tests, but I make no guarantees. I hope to extend and release (or release then extend) the project at some point. Subversion users who feel brave can check out the code from Mozilla Public License v2.0.
28 April 2012
Yet another Code Snippets database update!
No Code Snippets Database updates for months and then two in one day! In this one there are three routines for checking if a string is a valid Single, Double or Extended floating point number. There's also a routine to convert a positive whole number into Roman notation. A single new date / time routine converts a whole number of milliseconds into a TDateTime. There's a whole bunch of new overloaded Exchange procedures that swap the values of two integers. There are overloads for signed and unsigned versions of 8, 16, 32 and 64 bit integers. Oh yes, the old and now superseded ExchangeInt routine has moved from the Mathematics category to join its new friends in the Utilities category.
22 April 2012
The Code Snippets database has had a small, but overdue, update
The online Code Snippets database has been updated with two new graphics routines and two new type definitions. The first routine is ContrastingColor that selects either a black or white foreground colour that contrasts with a given background. The second routine is CountColors that counts the number of unique colours in a 24 bit bitmap. The new types support working with 24 bit and 32 bit scanlines. Other than that a few types and some constants that relate to graphics routines have been moved from the Types and Constants categories into Graphics.
22 April 2012
2nd preview of CodeSnip v4 now released on SourceForge
The 2nd alpha (preview) release of CodeSnip v4 has now been released. This provides the core new features slated for v4 - new "unit" and "class" snippet types. The first lets you include whole units in the snippets database that can be test compiled. The second "class" type is for classes and advanced records along with their method implementations. Snippets of this type can be test compiled and included in generated units. There are other new features that you can read about in the change log at Note that this version is available only on source forge, in either executable or source code format.
21 April 2012
CodeSnip v3.10.1 released (bug fix)
This is a bug fix release of CodeSnip that fixes an obscure bug that can corrupt source code units generated by CodeSnip. The circumstances when this occurs are not commonplace, but you are advised to update just in case. See the bug report at for full details.
20 April 2012
CodeSnip v3.10.0 released
CodeSnip v3.10.0 has been released. It's a minor update that simply adds a new Help | On The Web | FAQs menu option that displays the CodeSnip FAQ in the default browser. Some niggling UI problems in dialogue boxes using tabbed page controls were also fixed.
17 April 2012
PasHi Pascal Syntax Highlighter v2 beta 1 released.
A beta of the new greatly enhanced PasHi Pascal syntax highlighter has been released. This is a mega update with lots of new options such as line numbering, use of your own style sheets, links to external style sheets, multiple source files etc. See the program's ReadMe file for full details. There's also a new greatly enhanced version of the GUI front end program PasHiGUI. Several sample style sheets are bundled with PasHi, many of which emulate the Delphi 2010 IDE styles, right down to the line numbering style.
11 April 2012
8 Queens Problem Solver v4.1 released.
A new version of the 8 queens problem solver program has been released. It has been refactored using later Delphi language features and recompiled with Delphi 2010. You can now click on a chess board square to see the rows (ranks), columns (files) and diagonals that can be take from a queen on the square to check the results are correct.
18 March 2012
CodeSnip Subversion repo re-structured
CodeSnip's Subversion source code repository has been restructured. Because the main development effort is now on Codesnip 4, the v4 development feature branch (v4-dev) has been integrated into the trunk, and the branch has been deleted. v3 code has been moved into a release branch named 3.x in the branches directory.
27 February 2012