Skip to main content

Questions tagged [delphi-2009]

Delphi 2009 is a reference to a specific version of Delphi. Delphi 2009 was released in August 2008, and is available as a stand alone product, or as part of RAD Studio 2009.

1 vote
0 answers
47 views

Post persian character value with delphi TREST component

I send a post request with Delphi TREST component with parameter value as Persian characters: Request.Method := rmPost; Request.Parameter.Name := 'ChangeLog'; Request.Parameter.Value:= 'توضیحات نسخه'; ...
Shayan's user avatar
  • 11
0 votes
0 answers
92 views

Access violations and datatype mismatch

I'm encountering a puzzling issue with my code where I'm getting two different errors on the same line. Initially, I received a First chance exception at $761F8462. Exception class EOleException with ...
Kyle's user avatar
  • 5
0 votes
0 answers
60 views

What is the ADO Table equivalent of Delphi/Paradox TTable.SetRange

I am converting a large Delphi 2007 program from Paradox to SQL Server but the Ttable.Setrange function is not available in ADO. I've tried the ADO Filter property but I can't get the results I want. ...
Patrick Fleck's user avatar
0 votes
1 answer
278 views

How to save a screenshot of a Form containing TRichEdit to a file?

I use this code to save a screenshot of a Form to a bitmap file: var Bmp : Graphics.TBitmap; begin Bmp := GetFormImage; try Bmp.SaveToFile( _DestFilePath ); finally Bmp.Free; end; ...
Max Smith's user avatar
  • 395
-1 votes
2 answers
173 views

How to compile a Delphi source code file for execution from the command line with parameters?

I use Delphi 7 IDE. I want to run .exe from the command line with parameters (to be defined). How can I know if my app is running with the CMD command? How can I read the parameter with source code?
Nechba Med's user avatar
0 votes
1 answer
180 views

How to catch Delphi App shutting down when run in IDE?

Scenario Using Delphi 2009 on Windows 10 I have an app that performs shut down operations such as logging and database manipulation. Anywhere the user is able to exit the app I call Form.Close on the ...
user2834566's user avatar
0 votes
1 answer
198 views

Delpi packages: should I include source directory in "Tools - Options - Language - Delphi - Library - Library path" and recompile *.dcu each time?

I am migrating from Delphi 2009 to Delphi 10.4 Sydney and I am updating the convention that I will use for the organization of my Delphi custom packages. To see how the things should work in Delphi 10....
TomR's user avatar
  • 2,926
0 votes
0 answers
100 views

How to add/insert multiple TJsonArray's within each other and still maintain their 'names'?

I have been searching for days, but I can't figure out how to add/insert TJsonArrays within each other, without them losing their property name. In the following I need to set the names of 'subArray' ...
Per's user avatar
  • 1
-1 votes
1 answer
360 views

TSaveDialog Options ofAllowMultiSelect doesn't work properly on a W10 system

I have an old application, untouched for a long time, built with C++ Builder 2009, that still works fine. That is to say .. Today I noticed some of the TSaveDialog->Options don't work as intended ...
Peter's user avatar
  • 1,406
1 vote
2 answers
493 views

Correct syntax to read the value of a JSON string inside nested object using TJSONDataObject

Can someone please help me with the correct syntax to access a string inside a nested object using JSONDataObjects from Andreas Hausladen I have a JSON string returned from an API that contains an ...
user2834566's user avatar
1 vote
3 answers
2k views

How to assign richly formatted text to Delphi TRichEdit or TcxRichEdit during design time (possibly, using Lines attribute)?

I just want to assign immutable, richly formatted text to RichEdit (or DevExpress cxRichEdit, which, obviously is inherited from VCL RichEdit) during design time. I know how to do a lot of formatting ...
TomR's user avatar
  • 2,926
2 votes
1 answer
428 views

How to ask Delphi memo components (TMemo, TcxMemo) to recalculate line breaks? How to prevent the fixed wrapping of lines?

I am trying to use Delphi (Delphi 2009) TMemo and TcxMemo components - I have WordWrap=True and Scrollbars=[vertical scrollbar] and I am adding 4 very long text lines. The memo component automatically ...
TomR's user avatar
  • 2,926
0 votes
1 answer
280 views

How can I disable TRadioButtons on a panel without changing their appearance?

The scenario I have a reasonably complex form that is used for either data entry or for viewing with no editing allowed, depending upon a state variable (the colour and headings on the form change ...
user2834566's user avatar
5 votes
1 answer
2k views

Delphi TCriticalSection Acquire vs Enter - what is the difference?

I am updating Delphi (Delphi 2009) code which uses exclusively TCriticalSection.Acquire/Release pairs, not Enter/Release or Leave pairs. My question is - what is the difference between Acquire and ...
TomR's user avatar
  • 2,926
1 vote
2 answers
791 views

Flicker problem with labels in panel of form Delphi-2009

I have an simple application with a panel contains 2 labels (eg. A & B) and a button C created by Delphi 2009. Label A will display the cursor position when I move the mouse inside the area of ...
Nam Vu's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
65