Questions tagged [delphi-xe]
Delphi XE is a specific version of Delphi. Delphi XE was released in August 2010, and is available as a standalone product or as part of RAD Studio XE.
1,484
questions
1
vote
3
answers
213
views
Best practice for storing many long SQL queries in Delphi
I am developing applications with Delphi XE. I have many long SQL queries and I don't want to store them in code like below, because this method reduces code readability:
CONST_SQL1 = 'SELECT ... FROM ...
0
votes
1
answer
50
views
Delphi (XE) BPL Packages do not load: DevExpress, RemObjects
Good Day,
I am in the process of trying to open a legacy software project in Delphi XE. Whenever I try to open the IDE, I get around 100 - 110 error messages, one error message per DevExpress ...
0
votes
0
answers
58
views
Delphi display data from TVirtualTable group by
In Delphi TVirtualTable I have data eg.
Name Total
Audi 9
Audi 1
BMW 7
BMW 3
My GridView load data from table. Is it possible dispaly data like this:
Name Total
Audi 10
BMW 10
...
0
votes
0
answers
18
views
OnDeactivate does not fire for a docked dialog in Delphi
I have a dockable floating dialog. It shows the properties of the selected elements of the main window. The user can modify this values and if press [enter] or leave the TEdit, after validation the ...
-3
votes
1
answer
667
views
Compiler error "E2003 Undeclared identifier"
In this code:
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms, Dialogs, IdBaseComponent, IdComponent, IdTCPConnection,
IdTCPClient, IdIOHandler, IdGlobal, ...
0
votes
1
answer
29
views
E2153 ';' not allowed before 'ELSE' [duplicate]
When I compile my schedule:
procedure TForm1.FormCreate(Sender: TObject);
var
Speed: Double;
myStringList: TStringList;
b: array[0..512] of Char;
Memory: tMemoryStatus;
i : Integer;
begin
...
0
votes
1
answer
82
views
Retrieve Year from week number
Using Embarcadero Delphi, I need to populate a table with week number and the week year.
The problem is at the end of December and starting January.
First case:
Date "29/12/2024": is in the ...
-1
votes
1
answer
144
views
Incompatible types: 'string' and 'Boolean' [duplicate]
I have to check for a sound card, so I don't need quality but only one answer yes or no. I used this code:
function IsSoundCardInstalled: Boolean;
Begin
Result := waveOutGetNumDevs > 0;
End;
...
0
votes
0
answers
58
views
connect to Power Bi with delphi xe10.4.2
I want to write a program with Delphi that uses pbi reports
Is there a solution?
I saw similar work with other platforms but I need it done in Delphi
0
votes
1
answer
60
views
Write more lines TMemo (Delphi XE)
In a TMemo I must report information on multiple lines:
procedure TForm1.FormCreate(Sender: TObject);
var
ids: TidIpWatch;
Speed: Double;
begin
ids := TidIpWatch.Create;
Speed := GetCPUSpeed;
...
-1
votes
2
answers
84
views
Incompatible types: 'string' and 'Double'
I would like to use a Label or a Memo to view information:
function GetCPUSpeed: Double;
const
DelayTime = 500;
var
TimerHi, TimerLo: DWORD;
PriorityClass, Priority: Integer;
begin
...
0
votes
0
answers
54
views
delphi XE VCL Component Design issue? [duplicate]
Components created in Form Designer are displayed in XE Style,
but when built,
its built with the design of Windows 7 or a lower Delphi version.
what's the reason?
[Left] : XE Form Designer
[Right] : ...
0
votes
0
answers
126
views
Add attachment to message in Slack API
How can I add a large text file (actually a HTML file) as an attachment to a channel in Slack? A working example would be great. I use SDriver - the included demo works fine to send some strings, but ...
-1
votes
2
answers
73
views
Problem with the HTTPS protocol (Delphi XE)
Doing so, I should get the public IP:
function TForm1.GetPublicIp: String;
begin
IdHttp1.Request.Host := 'https://www.mio-ip.it';
Result := IdHttp1.Get('https://www.mio-ip.it');
end;
The problem ...
0
votes
1
answer
756
views
Delphi XE + Indy 10.6.2.0: TLS v1.2 hangs on IdSMTP.Connect;
When trying to connect to an SMTP server with TLS v1.2 method and port 465 used, my program hangs infinitely. I created a test mail account on mailbox.org (TLS 1.2 obligatory) and tried with the ...
0
votes
2
answers
249
views
How to ...... hide columns of a CxGrid with drag and drop
How to popup a customization dialog to hide columns, like this:
0
votes
0
answers
155
views
Wait until Class has done its work in Delphi
Hello StackOverflow community,
I ran into a problem with one of my Delphi projects.
Wrote a sip-phone class to call clients. Works fine so far but I need the program to wait until the call is done.
...
0
votes
0
answers
89
views
AQTime is not identifying my application's debug information
I am facing a strange issue with AQTime in a Delphi XE application.
I am trying to run AQTime for performance improvement but due to this issue I can't do so.
In Module Panel, application is marked ...
1
vote
1
answer
212
views
Delphi - Create Component Sub Property
I am developing components with Delphi. I'm stuck on something and need your help. I needed a sub property when creating the property value in my component.
In short, I wanted it to be like this on ...
1
vote
0
answers
201
views
Unsupported ELF file type 2 when linking in a seperate shared object lib with delphi in linux 64bit
In the following, Delphi XE 10.4.2 with the latest patches (as of 9th June 2021) and RHEL 8 with all updates have been used.
Delphi 10.4.2 doesn't seem to be able to link against .o files so I create ...
2
votes
0
answers
41
views
Automatically Pause When Visiting Youtube URL
I was tasked to capture the image on a specific time when visiting youtube. So far I haven't got any success using chromium. For example, i need to capture the image of a video exactly after 180 ...
1
vote
1
answer
74
views
Delphi XE: Why some items in File->New->Other->ActiveX are grayed out? [Solved]
I wanted to create a new ASP.NET project using Delphi XE, but I'm facing the issue in the Title. Almost all icons in the right box are grayed out (disabled).
I don't understand it, because my Delphi ...
1
vote
1
answer
73
views
Are generic TObjectlist operations Delete and Move typesafe for descendants?
I have TKeyframe as a class, and Keyframes: TObjectlist<TKeyframe> in a base class TTrack, but in descendants of TTrack, Keyframes contains descendants of TKeyframe with additional fields and ...
0
votes
0
answers
74
views
How to change the camera position during design in Viewport3D?
In Delphi 10.x for arrange objects in the environment, How to change the position of the default camera or zoom it during design?
0
votes
1
answer
58
views
DELPHI FIREDAC Precedence between master detail relation and calculated fields
I have a TFDQuery, I'll call it FDQ_Master, containing a formula in text. The Idea would be to add a calculated (Or internal calc same result so far) field to this FDQ_Master to evaluate this formula....
1
vote
2
answers
358
views
Delphi 10: What can I do about String[25] changing some char values to "?"
I have ported a Delphi 7.1 application to Delphi 10.3.
I have some simple encrypting/decryption functions.
And if I encrypt string values and encrypt them, everything is fine:
var
test, encrypted, ...
1
vote
0
answers
68
views
How to pass popupparent property to a DLL
I pass the popupparent property from a program to a DLL.
When call two times to DLL the program raises an access violation.
This is my dll code:
library mydll;
uses
System.SysUtils,
System....
0
votes
0
answers
233
views
Delphi using Gnostice eDocEngine , PDF toolkit create and alter PDF
I am using Delphi XE6 and using Gnostice eDocEngine to create the PDF and Gnostice PDF toolkit to edit/ alter PDF.
I am able to create a PDF using eDocEngine and also able to view the created PDF ...
1
vote
2
answers
100
views
Indy Query Using Delphi
I have two TIdTCPClient components (TCPClient1 and TCPClient2) that share the same OnStatus property (see below).
The components are identified by their Tag property. How do I identify the calling ...
0
votes
1
answer
588
views
Set default folder when print to a PDF-file
I am using FastReport printdialog.
I print to a PDF-file.
How can I set the initial folder that is suggested when I save the PDF-file ?
1
vote
1
answer
232
views
Paradox BCD field - Number is out of Range error
I'm attempting to update an old Paradox (BDE) table using an older Delphi XE6 application. One particular table has two fields; a Date field, and a BCD field. I'm unable to post a new record to the (...
-1
votes
2
answers
799
views
TStringlist error on loadfromfile : No mapping for the Unicode character exists in the target multi-byte code page
I'm getting the exception below when trying to load a file using the TStringList.LoadFromFile method:
stringlist1.loadfromfile('c:\example.txt');
No mapping for the Unicode character exists in the ...
0
votes
1
answer
55
views
How to search and replace code in Delphi TBCEditor
I need help. I was compiling a code editor. How to search and replace code in Delphi TBCEditor.
1
vote
1
answer
206
views
Delphi decoded base64 to something
I am stuck a bit in decoding. I got a base64-encoded .rtf file.
A little part of this looks like this: Bek\u252\''fcld\u337\''3f
Which represents: Beküldő
But my output data after decoding is: Bekuld?
...
2
votes
2
answers
739
views
Delphi Devart SecureBridge POST Request
I am using the trial version of DevArt's SecureBridge product. I am trying to process POST, but somehow I could not print the request data.
XML:
<test>
<a>test1</a>
<b>test2<...
0
votes
1
answer
212
views
Scroll by mouse drag
For some reason, user is having problem using the vertical and horizontal scroll bars in TTreeView. They want to scroll by drag(simulate finger on touchscreen). I'm not sure where to start with this ...
1
vote
1
answer
6k
views
Azure Pipelines multi-repo how to get Git Commit ID
For an Azure Pipeline with multi-repositories, how can you get the GIT commit id from a checked out resource repository? Is it supported?
I'm using an Azure repo to store the pipeline yaml file, and ...
0
votes
1
answer
85
views
EOutOfResources exception when trying to restore tray icon
I'm getting an EOutOfResources exception 'Cannot remove shell notification icon' when trying to implement code to restore the tray icon after an Explorer crash/restart. My code is based on the old ...
1
vote
0
answers
244
views
Delphi RAD Studio Deployment Manager Remote Path for Appx Deployment
I'm searching for some documentation of the Delphi RAD Studio deployment manager, that describes in detail available remote path settings, if I like to include additional files, that have to be ...
0
votes
1
answer
137
views
Pascal assign variable to record field in RAD Studio XE
Can anyone comment on where the problem is here?
Compiler error says: Error: Incompatible types: 'Array' and 'name'
Error on line: Student.s_name:=n;
Code as follows.
program datafiles;
Uses ...
2
votes
2
answers
1k
views
Receiving 400 Bad request when making S3 GET request
I am trying to make an AWS version 4 authorization signed GET request to S3, and receive a bad request error 400 Code:InvalidRequest Message:Missing required header for this request: x-amz-content-...
2
votes
1
answer
110
views
Aggregate of multiple UI controls bound to one database column
I currently have a TDBRadioGroup bound to a CHAR column on the database using the Values property to specify the value stored in the database column for each radio button. Now we have a requirement to ...
0
votes
1
answer
247
views
Datasnap REST Server increasing memory usage: How to free memory of ServerMethods results?
In Delphi XE10 Datasnap REST project is used a TFDJSONDataSets to transfer datasets to client side.
Lifecycle: Server
The problem is: the server memory usage increases for each call, and I'm not ...
0
votes
1
answer
2k
views
Is there a way to solve an I/O error 6 in Delphi?
procedure TfrmSongs.Display;
var
i: Integer;
begin
redOutput.Clear;
redOutput.Lines.Add('The TOP 10');
for i := 1 to iCount-1 do
begin
redOutput.Lines.Add(IntToStr(i)+arrSongs[i]);
end;...
0
votes
0
answers
223
views
Is there a way to make an array of "sub-enumeration" in Delphi?
Consider:
type
TEnum = (e1, e2, e3, e4, e5, e6, e7, e8, e9, e10);
const
ENUM_ARR: array[TEnum] of integer = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
procedure Proc;
var
subEnumArr: array[e3..e5] of ...
0
votes
0
answers
155
views
SendMessage to execute button and wait until it's finished
I am using application A to control application B. I used SendMessage to execute a button in application B. After button in application B is executed, application A do another task without waiting ...
0
votes
0
answers
197
views
RAD Studio 10.3.3 Delphi App hangs in Main forms finalization (Threads hang on TMethodImplementationIntercept / gdiplus)
I have one Delphi Windows64 Application compiled by RAD Studio 10.3.3 that hangs sometimes in the finalization part of the main form after the call of CheckSynchronize; at the real end of application (...
1
vote
0
answers
208
views
Can't use Indy with Amazon Simple Email Service
I'm on Delphi XE and Indy version 10.5.7, trying to send emails using Amazon SES, but i always get the exception below :
First chance exception at $76734E28. Exception class EIdSocketError with ...
0
votes
0
answers
145
views
OpenSSL Error Starting Delphi-XE Datasnap Server on Linux64 Ubuntu 18.04
Starting a DataSnap Server on Ubuntu 18.04 is causing some EThreadNameException followed by some EIdOSSL.CouldNotLoadSSLLibrary inside unit IdSSLOpenSSL at line 2319 (IdSSLOpenSSLHeaders.Load - ...
0
votes
1
answer
82
views
Delphi generic class usage compilation error
I'm writing some utility code for an old Delphi XE codebase; in order to keep things simpler and safer I've created a method meant to wrap a type-specific TProc<TReq> (where TReq is a generic ...