Top "Delphi" questions

Delphi is a language for rapid development of native Windows, macOS, Linux, iOS, and Android applications through use of Object Pascal.

Converting TMemoryStream to 'String' in Delphi 2009

We had the following code prior to Delphi 2009: function MemoryStreamToString(M : TMemoryStream): String; var NewCapacity: Longint; begin if (M.Size = &…

delphi string unicode delphi-2009 memorystream
Get currently selected Combobox value and use it as variable

My question is about Delphi 7. I need to get currently selected ComboBox1 value to use it as Floating point variable …

delphi combobox tcombobox
Create a constant array of strings

Is there a way in Delphi declaring an array of strings such as following one? {'first','second','third'}

arrays delphi constants
Creating components at runtime - Delphi

How can I create a component at runtime and then work with it (changing properties, etc.)?

delphi runtime components
How do I solve the "Cannot perform this operation on a closed dataset" with Borland Database Engine and a Delphi application?

The application was working perfectly, until I edited the user database (*.dbf) in OpenOffice.org Calc. Now it gives me …

delphi dataset bde
How to save a string to a .txt file in Delphi?

I need to make a program that generates a password that is saved in a text file format in a …

string delphi delphi-7 text-files
How do I declare an array when I don't know the length until run time?

I originally had an array[1..1000] that was defined as a global variable. But now I need that to be n, …

delphi arrays global-variables dynamic-arrays redefine
ORA-24338: Statement handle not executed

i'm using Delphi 7, Oracle 10, and ODAC Components. From the LoadTrainResult method I'm calling a storedProc. procedure TfrmTrain.LoadTrainResult; begin StoredProc.…

oracle delphi delphi-7 odac
How to parse a JSON string in Delphi?

How can I parse the JSON string {"data":{"results":[{"Branch":"ACCT590003"}]}} using the TJSONObject object? I want to get the …

delphi json delphi-xe
Debugging Access Violation errors?

What tips can you share to help locate and fix access violations when writing applications in Delphi? I believe access …

delphi access-violation