963 questions
4
votes
1
answer
189
views
Can there be a non-visual (without dfm) base form between TForm and any other form of the app?
In my Delphi 2009 VCL application, I have several base forms, like:
TListBaseForm = class(TForm)
TEditableListBaseFrom = class(TForm)
TEditBaseForm = class(TForm)
Each of these base forms is using ...
1
vote
1
answer
121
views
Delphi 2009 can not compare '' with 333 while Delphi 6 could: "Could not convert variant of type (UnicodeString) into type (Double)" in Delphi 2009
I am trying to migrate a Delphi 6 application with TdxDBGrid to Delphi 2009, and for the time being I would like to keep TdxDBGrid, because it has features that TcxGrid does not (we're moving to ...
1
vote
0
answers
67
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:= 'توضیحات نسخه';
...
0
votes
0
answers
96
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 ...
0
votes
0
answers
97
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.
...
0
votes
1
answer
383
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;
...
-1
votes
2
answers
217
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?
0
votes
1
answer
213
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 ...
0
votes
1
answer
235
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....
0
votes
0
answers
121
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' ...
-1
votes
1
answer
462
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 ...
1
vote
2
answers
637
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 ...
2
votes
3
answers
3k
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 ...
2
votes
1
answer
514
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 ...
0
votes
1
answer
334
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 ...