Legacy CodeThese articles relate to legacy code, that is, code which I no longer support or even work with. You will find some snippets and also full applications. Were possible they are accurate and up to date, however, you may find that newer versions of language or compilers, operating systems and hardware may cause problems running this code.
Simple and very useful Delphi and Pascal function to Recursive Find Files in Dephi from a given starting directory or drive.
nPos Function in Pascal / Delphi which returns the nth position of character in a string, useful if you want the second or third occurrence.
A short code snippet which will allow a program icon to be displayed in the application to system tray when the form is minimised.
How to use ShellExecute functions in Delphi to launch programs and files from your code. Opening files will use the system default editor.
This code will prevent multiple instances of your application from opening, and pass parameter details to the existing application process.
These Pascal procedures will convert an integer to Roman numeral and a Roman numeral to an integer value. Simply copy and paste to your code
This short procedure will load data stored in a CSV file into a StringGrid in Dephi control for which can be used for display or processing.
A short code snippet in Delphi which will do image tiling in Delphi which is useful when you want an application to have background texture.
Delphi String Case Conversion functions for Title Case, Sentence case or toggle the case (convert upper to lower, lower to upper case)
This short procedure will capture a screenshot with Delphi of the active window or the whole screen which you can manipulate or save.