Questions tagged [delphi]
Delphi is a language for rapid development of native Windows, macOS, Linux, iOS, and Android applications through use of Object Pascal. The name refers to the Delphi language as well as its libraries, compiler and IDE which is used to help edit and debug Delphi projects.
delphi
52,084
questions
-5
votes
0
answers
70
views
DELPHI COMPUTING USING AGGREGATE [closed]
I am using an aggregate field ( SUM((ItemPrice + ItemTaxes) * ItemCount). This one takes a long time to execute when I do an update to field ItemPrice . Is the Sum function recalculated or updated?
...
2
votes
1
answer
116
views
How to hide console application into Tray?
I want my console application to be hidden in the system tray after it starts. When working with a GUI application, I used TTrayIcon, and it worked without any problems. For the console application, I ...
-2
votes
0
answers
74
views
How to manually write DUnit TestCases in Delphi [closed]
I'm using Delphi 10.2 and I need to implement Test Cases dynamically based on the configuration in a loop. How am I able to implement this for DUnit?
[TestCase('Date, space, time', '1988-10-21 17:...
0
votes
1
answer
100
views
Write a new Delphi type that lets a method have inline code as a parameter?
Is it possible to have this in Delphi?
DoThis(ShowMessage('SomeMsg ..'); Caption := 'SomeCaption'; Inc(I));
Is it possible to create a new type that handles inline code like this?
For example, we ...
0
votes
1
answer
64
views
Append string along with single quotes to create SQL query?
var
strng,value,UserName : WideString;
Query : Smplquery;
begin
strng := 'table';
value := 'column';
Username := 'CN=ABC[EXT] XYZ, AB=HELLO EFG,AB=SDRTY0045,AB=DW,AB=BNKM,HB=SWCD,HB=...
1
vote
2
answers
92
views
How can I get a Pointer to a generic instance?
TTestClass = class
content: Integer;
end;
TTest = class
public
class procedure TestProc<T: class>(obj: T);
end;
class procedure TTest.TestProc<T>(obj: T);
var
p: ...
0
votes
1
answer
82
views
How to set color of row in TStringGrid?
I have a challenge.
There is a list in a TStringGrid. Above this list is a TLabeledEdit field. When I type some value into this Edit and then press a button, I scan the list and compare this value ...
3
votes
1
answer
98
views
Create form with parameter name and send parameter to this form
I read a file that has the name of the form I need to create.
After the form is created, before the ShowModal(), I need to send parameters to this form.
If the form name were fixed, I would use the ...
-1
votes
1
answer
85
views
Delphi - Sending Byte to DLL
I am attempting to work with an API and am communicating with this function:
BOOL SelectSpeed (int Device, byte SelectSpeed)
With the argument for SelectSpeed expected to be values such as 0x01 or ...
2
votes
2
answers
121
views
Do string variables in records get freed when the record goes out of scope?
In Delphi you can declare a record containing a String. This means the record just contains a pointer the heap when the string is located; does the heap memory get freed when this record goes out of ...
0
votes
1
answer
124
views
Converting my old AnsiString based D7 app to Unicode with AI?
What would be the best process to convert a very old ANSI charset based Win32 application to UNICODE? The source code is currently compiled with Delphi7. Would it be best to make this conversion with ...
1
vote
1
answer
46
views
How do you change a SVG Image's Color in TMS WEB Core
I am adding an SVG image to a black background in TMS WEB Core and would like to change the color of the SVG image to White. I have tried changing color in the properties but there is obviosly no ...
0
votes
0
answers
57
views
DataSnap - Object as server method parameter
Is it currently (Delphi 12) possible to write in server method parameters some class and receive it from simple JSON?
Now I have:
type
TTestParam = class
fVal1: Integer;
end;
{$...
0
votes
1
answer
46
views
"Error creating form in Unit...fmx: FMX datamodules not supported." when inherit from TDataModule descendant class
I have a problem (with sample project).
I have a TDataModule derived class to which I have added some properties and methods.
I wanted to make sure that it was possible to create a new instance of ...
0
votes
1
answer
145
views
Make Delphi XE application DPI-unaware
I just created a new application in Delphi and even though other applications written the same way, this new application does not get automatically scaled by Windows. All applications have exactly the ...