Skip to main content

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.

0 votes
0 answers
5 views

How to manually write DUnit TestCases in Delphi

I'm using Delphi 10.2 and I need to implement the the Test Cases dynamically based on the configuration in loop and how I able to implement for DUnits? [TestCase('Date, space, time', '1988-10-21 ...
Velson Infotech's user avatar
0 votes
1 answer
29 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 ...
MBen's user avatar
  • 19
-1 votes
0 answers
13 views

How do I draw a line with rounded ends using skia and Delphi?

To draw a line with a rounded end in skia you need to change the StrokeCap to Round. Here is a simple example using Delphi: procedure drawRoundedLine (ACanvas : ISkCanvas; x1, y1, x2, y2 : single); ...
rhody's user avatar
  • 2,365
0 votes
1 answer
29 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=...
Lucas's user avatar
  • 1
-1 votes
0 answers
15 views

Open files application iOS Delphi

I'm new to iOS development with Delphi. I've used Android intents to browse pdf and select a pdf. How is this done in iOS? I understand the permissions in the plist but what do I need for file picker ...
xgm's user avatar
  • 1
-1 votes
0 answers
54 views

Delphi can't compare dates [closed]

What do I do ? I'm not sure how I'm supposed to deal with this ? Stackoverflow wants more words, sorry. Stackoverflow wants more words, sorry. What do I do ? I'm not sure how I'm supposed to deal with ...
John John's user avatar
1 vote
2 answers
78 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: ...
John John's user avatar
0 votes
1 answer
71 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 ...
Radosław Dobrowolski's user avatar
3 votes
1 answer
84 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 ...
Renato Benedetti's user avatar
-1 votes
1 answer
82 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 ...
Noah Leightley's user avatar
2 votes
2 answers
110 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 ...
John John's user avatar
0 votes
1 answer
115 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 ...
Tom's user avatar
  • 6,761
1 vote
1 answer
43 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 ...
Puffer Fish's user avatar
0 votes
0 answers
56 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; {$...
Dżyszla's user avatar
0 votes
1 answer
42 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 ...
Maurizio Del Magno's user avatar

15 30 50 per page
1
2 3 4 5
3473