News for 2012

Four new routines added to Internet section of the Code Snippets Database
Four new snippets for manipulating URIs have been added to the Code Snippets database. They are ExtractURIFragment which returns any fragment component of a URI, RemoveURIFragment which removes any fragment from a URI, ExtractURIQueryString which returns any query string included in a URI and RemoveURIQueryString which removes any query string from a URI.
09 July 2012
Five new tips from the former Delphi Pool have been added, starting with tip #192
Five further tips taken from the defunct Delphi Pool website have been uploaded to the Delphi Tips section of the site. They are: #192, "How to save the font settings of a control to the registry"; #193, "How to subclass the default Delphi Dock Manager"; #194, "How to create data-aware components"; #195, "How to implement a custom component paint method that is dependent on outside data" and #196, "How to get the update region in a TGraphicControl".
08 July 2012
Two Windows shell routines added to the Code Snippets Database.
Two new routines have been added to the Windows Shell category of the Code Snippets database. They are: GetDesktopFolder that returns the path to the current user's desktop folder and GetKnownFolderPath that gets the path to a "known folder" using the API that was introduced with Windows Vista.
06 July 2012
Added 10 new Delphi Tips contributed by "Topellina"
This batch of tips is a subset of many that were contributed by "Topellina" some time ago. The tips are: #182, "Draw a DBGrid with alternating row colours"; #183, "Prevent a Delphi form from being moved off screen"; #184, "How to wipe a file"; #185, "How to detect and prevent Windows shut down"; #186, "Take a screen shot of an inactive window"; #187, "Prevent a Delphi form from being moved"; #188, "Add animation effects to your forms"; #189, "Ensure a form stays in the background"; #190, "Terminate a process instantly" and #191, "Delete or clear rows in a TStringGrid".
06 July 2012
New tip "Simulate the Visual Basic SendKeys and AppActivate routines in Delphi"
This new tip "Simulate the Visual Basic SendKeys and AppActivate routines in Delphi" is copyright (C) 1995, Ken Henderson and was contributed by Irfan Karazor
05 July 2012
Red letter day! The 500th snippet has been added to the Code Snippets Database.
The 500th snippet has just been added to the Code Snippets Database! It's a simple routine that gets the title of a window using its window handle and returns it as a Delphi string.
01 July 2012
CodeSnip v3.10.2 released.
Release 3.10.2 fixes a minor text search bug (see It also changes the information sent to the web server when the database is updated. In addition to the program key and version number previously sent, the operating system description and major version number of Internet Explorer is also sent. This is to enable stats to be gathered about the usage of the program to help target new features and know which OSs and browser controls need to be targetted. NOTE: No personally identifiable information is gathered - see the privacy statement in CodeSnip's help file for full details of the data that is gathered.
19 June 2012
First new Delphi tip for over a year!
New Delphi tip #180 has been added entitled "How to swap two integers without using a temporary variable". Contributed by Muhammad Saied.
18 June 2012
3rd and final preview of CodeSnip v4 now released on SourceForge
This is the 3rd and final preview (alpha) release of CodeSnip v4. It contains some new features including category printing, ability to generate Delphi code to turn warnings on or off and some enhancements to search. Everything else involves changes to the user interface. See the change log at for a full list of features. The next release will be the first beta, hopefully feature complete.
18 June 2012
The guestbook has gone.
The site guestbook, which had been receiving less and less genuine traffic and more and more spam has been removed from the site.
17 June 2012
Three Mathematics routines added to Code Snippets Database
Three new routines for tested for repeated digits in a number have been added to the Code Snippets Database in the Mathematics category. Two of them, RepeatedDigits and AllDigitsSame use two different methods to test if a number is composed of only a single repeated digit, e.g. 77777. The third, AllDigitsDifferent checks if all the digits of a number are different to each other, e.g. 15862.
16 June 2012
Three new geometry routines added to the Code Snippets database.
Three new geometry routines have been added to the Mathematics category of the Code Snippets database. The first finds the area of a TRect rectangle while the second and third are overloaded routines to find the distance between two points, one for TPoint points and the other for floating point TPointF points.
14 June 2012