When working on datasets in multiple languages or in a language other than English, you can encounter string values with accented letters (like : à, é, è, ï, …).
If your database controls have unicode support with no settings to tolerate accents, then filtering records can be kind complicated to find records containing diacritics and accented letters, as most users won’t pay attention when writing the filter pattern.
Continue reading “Remove accents and diacritical marks from letters in Delphi”
Sending mails from a client app is an interesting feature, it can be used for sending notifications or authentication codes. You can add this option to your Delphi (desktop and mobile) apps by calling a PHP web script through REST client.
Continue reading “Send mails from Delphi apps through PHP script”
Delphi FireDAC datasets offer a quick and easy sorting feature, through the property “IndexFieldNames” in which you list the field names to use as an index, and you can optionally specify sorting options for each field.
Continue reading “Sorting records in Delphi datasets”
How to replace a string quickly in the whole dataset ? How to create a fast replace dialog for your app’s datasets ?
In this tutorial, we will explains the right procedure to implement a replace feature for your Delphi datasets.
Continue reading “Replace strings in Delphi dataset records”
Object Pascal units have two sections (interface and implementation), and as you can see in many source code, each section can have distinct items (uses, types, variables, and constants).
So, which section is suitable for putting a unit as uses ?
Continue reading “Difference between adding a unit to the interface or the implementation section”
Since version XE2, Delphi is shipped with the built-in unit “System.Zip” for creating, editing and extracting ZIP compressed files. It is based on the RTL, and it can work slightly with VCL and FMX frameworks on all supported targets.
In this tutorial, we will show you what are the abilities of this unit and how to use it properly.
Continue reading “Creating and extracting ZIP archives in Delphi”