Top "Delphi-xe2" questions

Delphi XE2 is a specific version of Delphi.

What is the best way to program a delay in Delphi?

A Delphi application that I'm working on must delay for one, or sometimes two, second(s). I want to program …

delphi events timer delphi-xe2 sleep
When do I need to call CoInitialize() in this scenario?

I'm building a multi-threaded windows service application in Delphi XE2 which uses ADO database components to connect to SQL Server. …

multithreading delphi activex ado delphi-xe2
How to convert Local time to UTC time in Delphi? and how to convert it back from UTC to local time?

I'm using Delphi and I'm trying to store records using UTC datetime in my database and then restore it back …

delphi datetime time delphi-xe2 utc
How to count number of occurrences of a certain char in string?

How can I count the number of occurrences of a certain character in a string in Delphi? For instance, assume …

delphi delphi-xe2 delphi-2010
Is there an easier way to do boolean conversions?

I have used this scenario many times in nearly all my projects, when I'm doing some sort of data conversion, …

delphi boolean type-conversion delphi-xe2
Design-time package fails to build - File not found: 'Graphics.dcu'

In Delphi XE2, I have a single control in a pair of design/run time packages. Originally, everything was working …

delphi scope custom-controls delphi-xe2
How to modify a cell value in Delphi TDBGrid

I have to display some modified 'masked' value in a VCL TDBGrid (Delphi XE2), ie : change 'password' to 'xxxxxxxx' or …

delphi delphi-xe2 tdbgrid
Example for using Generics.Collections.TObjectDictionary

The Delphi XE2 online help (as well as the Embarcadero DocWiki) is very thin on the documentation of TObjectDictionary (or …

delphi delphi-xe2
Adding custom header to TIdHttp request, header value has commas

I'm using Delphi XE2 and Indy 10.5.8.0. I have an instance of TIdHttp and I need to add a custom header …

delphi delphi-xe2 indy10
Simple code to encrypt an .INI file string using a password

I am looking for something more sophisticated than ROT13, but which does not require a library (preferablly not even a …

delphi delphi-xe2 encryption-symmetric