Questions tagged [delphi-xe2]

Delphi XE2 is a specific version of Delphi. Delphi XE2 was released on September 1, 2011 and is available as a standalone product or as part of RAD Studio XE2.

Filter by
Sorted by
Tagged with
1 vote
1 answer
55 views

How to Check Delphi TADOConnection.State

I have a method which performs some operations on a TADOConnection object, which sometimes seems to occur when the connection is in a state which would not permit this operation. When this happens, an ...
Luke's user avatar
  • 2,434
0 votes
0 answers
60 views

Add a control to a subcomponent inside a custom control

I've created a custom control which is a panel with another panel inside it. I want the controls added to the outer panel to be actually placed inside the inner panel. TCategoryPanel actually does ...
Bruno Kinast's user avatar
  • 1,068
0 votes
1 answer
13 views

Installing FastQueryBuilder Component Fails to install into Delphi XE2 IDE

I am trying to install FastQueryBuilder component set into Delphi XE2. I can build everything that is required, but when I go to install dslfqb100.bpl, I get the message shown below. I have a VM where ...
Shane's user avatar
  • 39
0 votes
1 answer
20 views

Delphi XE2 Installation fails to download required files due to connection issues

I am trying to install Delphi XE2 and it refuses to download the required files due to connection issues. There is no issues with my connection and I have turned off all antivirus etc. We are licensed ...
Shane's user avatar
  • 39
2 votes
0 answers
128 views

(Delphi) Trying to make derivative DBGrid, can't make it work

For certain reasons I can't use additional components such as EhLib or DevExpress QuantumGrid, so I'm trying to make my own component, derivative from standard DBGrid. But I don't have enough in-depth ...
Obsydian_ring Winds_of_hellhei's user avatar
1 vote
1 answer
97 views

Can not use Eureka Log function in module

I am getting some error while running my Delphi XE2 application with Eureka log. I have a licensed copy of Eureka Log and follow all the steps as per document, but still getting the error below: ...
A B's user avatar
  • 1,471
1 vote
1 answer
125 views

Crystal report database issue in Delphi 11.2

I am using crystal report 11 in delphi 7. Due to the unavailability of support from crystal report, I compiled the source code of crystal 11 in Delhi 11.2 and installed the components as part of ...
Ms vani's user avatar
  • 21
1 vote
0 answers
83 views

Disconected session Rad Studio XE2

I have a problem when running a project on XE2 it sends me a "Session disconnected" error, this happens when I try to run the project on 64 bit. Does anyone know how to fix it? Running the ...
Moises Arrona's user avatar
1 vote
1 answer
110 views

When typing at the end of the editmask, it will pass the number to the left side until it reaches the last one

Good afternoon, I'm doing a project in delphi that uses editmask. I'm using the phone mask. When clicking on edit to write the phone number, it goes to the last field on the right, so it is necessary ...
Erick Landim's user avatar
0 votes
0 answers
155 views

Delphi Thread Handling Best Practice to Pause and Resume

My application continuously syncs data with another database and I am running this process in a thread of which I have very little knowledge. I am pulling in data from an Actian Zen database. ...
Ericus Steyn's user avatar
1 vote
2 answers
113 views

When will a constant be created in Delphi XE2?

I am using Delphi XE2 and I have to write a function which needs some constant arrays. If I declare these inside the function, when will they be created? Each time when the function runs or only once? ...
Wolf Poncho's user avatar
0 votes
1 answer
439 views

Dark Theme for XE2

I have been looking for a proper tool or settings for Delphi XE2 IDE to support dark theme and haven't got around desired results. Dark Mode is available for 10.2 Tokyo and further versions is there ...
Yash's user avatar
  • 23
2 votes
1 answer
258 views

ComboBox doesn't behave the same inside panel

Using some answers in StackOverflow I've created a searcheable TComboBox in Delphi. It works fine when you add it directly to a Form, but breaks as soon as you add it to a TPanel and I can't seem to ...
Bruno Kinast's user avatar
  • 1,068
0 votes
1 answer
113 views

Named subcomponent inside compound(?) component

What I'm basically trying to create is a component that inherits from TScrollBox. That component has a TGroupBox and inside it a TFlowPanel. What I need is when I double click this component, a ...
Bruno Kinast's user avatar
  • 1,068
0 votes
1 answer
129 views

What is normal practice of stopping threads that do long operations?

Lets say I am about to close application/stop service, but one of my threads is going a long operation that I have no control of (lets say thirty party component is used). What is normal practice of ...
Edijs Kolesnikovičs's user avatar
0 votes
1 answer
406 views

Restart service while it is busy

I have written windows service application using Delphi XE2. Recently I noticed that service failed to start after Windows update. Logs told me that service was busy doing sleep. I have procedure ...
Edijs Kolesnikovičs's user avatar
0 votes
1 answer
127 views

TList<T> throws an exception

I have the following code: program Tlist; {$APPTYPE CONSOLE} {$R *.res} uses madExcept, madLinkDisAsm, madListHardware, madListProcesses, madListModules, System.Generics.Collections, ...
pio pio's user avatar
  • 732
0 votes
0 answers
533 views

PostgreSQL Delphi XE2 column pd.adsrc does not exists

After upgrading postgreSQL 12 i'm getting ad.adsrc error. Does anyone know how to patch it without upgradeing PgDAC? My idea was creating tabel myself, but you can't... SELECT pg_get_expr(d.adbin, d....
MysteriousNothing's user avatar
0 votes
1 answer
206 views

CreateEvent multiple listeners

I'm trying to receive an event in multiple instances of my application. For that purpose I've created a small demo program. First my TWorkerThread: unit WorkerThreadU; interface uses WinAPI....
Jens Borrisholt's user avatar
0 votes
0 answers
219 views

Delphi XE2 and Delphi 11 Alexandria "Error reading IBQ.PrecommittedReads" when loading a datamodule with TIBQuery

I'm porting a project from Delphi XE2 to Delphi 11, while keeping compatibility with the XE2 version. But when I open a data module in the XE2 IDE, an error message is shown: "Error reading IBQ....
malom's user avatar
  • 223
0 votes
0 answers
24 views

JSON ARRAY CREATION

Normally I don't have much issues with JSON in Delphi, but this one I am finding challenging. Perhaps I am missing some minor detail. My Json needs to look as below. The sections "StartLocation&...
SwissSolvesit's user avatar
0 votes
1 answer
131 views

How can i format HTML document (some tags are breaked into two lines)

Cli:=THTTPClient.Create; Result:=Cli.Get(URL).ContentAsString; Cli.Free; Memo1.Text:=Result; it worked ok, but some tags are breaked. I get it: </div></div><div class="...
Bald's user avatar
  • 13
0 votes
1 answer
174 views

Delphi XE2 XML Data Binding Wizard bug when XSD contains IMPORTED xsd's

When the XSD contains other imported XSD's, the XML entries referring to the imported XSD's do not include namespace prefix. This is start of the xsd with multiple imports: <?xml version="1.0&...
Damien Paul's user avatar
-4 votes
3 answers
177 views

Perform multiple SQL Server updates without looping

I have something like this: var text: string ; fid: string; for a = 1 to 100 do begin text:=stringgrid.cells[5,a]; fid:=stringgrid.cells[0,a]; query.SQL.Text := 'Update dbtable Set ...
Giannis's user avatar
  • 31
0 votes
1 answer
132 views

How to parse array JSON with XE2 dbxJSON

Following on my previous question: How to parse JSON with XE2 dbxJSON Where I had a clear answer on how to get a value out of a JSON string. I am now requiring to get the value from an array. The full ...
E Demers's user avatar
  • 103
1 vote
1 answer
884 views

How to parse JSON with XE2 dbxJSON

I am using XE2 and trying to parse a JSON file sent by a robot to a URL. I've looked at several solutions, but most don't apply due to my version of Delphi. I tried to apply the solution I found here: ...
E Demers's user avatar
  • 103
1 vote
2 answers
659 views

Delphi Indy 10 IdHTTPProxyServer Modifying Headers

I am trying to develop a CORS proxy server in Delphi XE2 using Indy 10 so that I can get around the issue of embedding sites into an IFrame where sites have added X-Frame-Options to the response ...
user2365039's user avatar
0 votes
0 answers
130 views

Built-in solution for grouping and aggregating TClientDataSet data into another data set

I have access log to my API with request time and URI. I load the data into TClientDataSet component. time req 2021-05-01 10:01:01 /identify 2021-05-01 10:01:02 /identify 2021-05-01 10:01:03 /...
Julius Tuskenis's user avatar
3 votes
1 answer
3k views

How do you read a file in Delphi into a byte array?

I am trying to read a file into a byte array in Delphi XE2. This is my current code: function FileToBytes(const AName: string; var Bytes: TBytes): Boolean; var Ms: TMemoryStream; begin Result := ...
Kenneth Barker's user avatar
2 votes
0 answers
506 views

Delphi, HighCharts and UniGui setData not working on recreated frames

Hi Everyone and Thanks in advance. I have created a web application using delphi xe2 and unigui. In my application, I display charts using Highcharts for delphi(THTMLCharts) with the use of UniGui. In ...
Francis Carillo's user avatar
2 votes
1 answer
322 views

What is the difference between the -i and -u parameters to the dcc command-line compilers?

What exactly is the -i option of the Delphi dcc command-line compilers (dcc32.exe, dcc64.exe, dcclinux64.exe and others)? As opposed to -u? Help just states this briefly (and Embarcadero documentation ...
Matthias B's user avatar
0 votes
0 answers
177 views

New data is not being 'added' in Highcharts in Delphi UniGUI Enviroment

I am having an issue in Highcharts with this scenario: there is a bar chart created with some existing data if i insert a new data which the name is already existing, there is no issue (Highcharts....
Divine M's user avatar
2 votes
1 answer
402 views

Delphi drawing part of png file on another image

I am using this function to draw a png over a TImage on a specific location: procedure TForm1.PlacePNG(nam: string; px, py: Integer); var vPic: TPicture; vSrc: TGraphic; begin vPic := TPicture....
Ofer Leshem's user avatar
0 votes
1 answer
102 views

Pls correct these functions of float number (type: double) under binary form in delphi

I've written 2 functions to convert a float number into/from binary, but the result is incorrect. Please help me to find its bug. (I found some FAQ for this topic, but they was written for C/C++) ...
shinken's user avatar
  • 23
2 votes
1 answer
290 views

Delphi - clearing ADO Tables

So I've made a button in my program that's supposed to clear all the tables in my database but it gives an error when clicking on the button in run-time. How do I remove that error? Code I'm using: ...
PrimeBeat's user avatar
  • 444
1 vote
1 answer
905 views

Delphi - descending sort of string grid rows, sorting by 1 column

I've run into a bit of a wall with my sorting, I managed to sort the rows of my string grid from smallest to largest but now I'm not sure how to sort it in descending order. I've tried using the code ...
PrimeBeat's user avatar
  • 444
1 vote
1 answer
599 views

Delphi - problem with string grid after sorting

So the string grid I have in the program I mentioned here: (Delphi - Changing active page's tab color and having it reset after clicking on another tab) sorts perfectly from smallest to largest ...
PrimeBeat's user avatar
  • 444
0 votes
1 answer
927 views

Delphi - Changing active page's tab color and having it reset after clicking on another tab

So in the program I'm writing, I'm using a TPageControl component with multiple tab sheets. I want to change the color of the tab of the sheet that is currently the active page on the PageControl and ...
PrimeBeat's user avatar
  • 444
0 votes
1 answer
349 views

Delphi: mapping numpad keys on keyboard to buttons on a GUI [duplicate]

so I've made a simple little calculator and I want to add a little more functionality to it by allowing the user to use the Numpad on their keyboard instead of using a mouse to interact with the GUI. ...
PrimeBeat's user avatar
  • 444
3 votes
1 answer
551 views

Indy 10 SSL root certificate

I am trying to verify server certificate. I use Indy 10 and OpenSSL. I specify Root RootCertFile and VerifyDepth to MaxInt. OnVerifyPeer works fine - AOk is true. I wonder how to load certificates ...
Edijs Kolesnikovičs's user avatar
0 votes
0 answers
639 views

Draw dropshadow using Direct2D

I need to render a dropshadow of bitmap A onto bitmap B using Direct2D. More specifically, A is 32-bit with alpha-transparency, i.e. some pixels can be transparent. B (also 32-bit) contains another ...
Nikolaj Henrichsen's user avatar
1 vote
1 answer
1k views

I'm getting this Error: Project raised exception class EDatabaseError with message 'sql: Field ' not found'

Well guys, I have a little problem in this part of filtering the table fields, for example doing a name search for such tableX. Only I'm getting this error: Project raised exception class ...
Kyuorhan's user avatar
0 votes
0 answers
437 views

Cannot Add Acrobat PDF Control in Delphi XE3

I try to do as follows to add the Acrobat PDF control to my Delphi XE3 project, as follows: In Delphi XE3, use "Import Component" -> "Import ActiveX Control", then select "...
alancc's user avatar
  • 453
0 votes
0 answers
155 views

View form as live in Delphi Form Designer?

I am using Delphi XE3. In the form designer, is it possible to view the form as if it was live? So that I can its really effect and adjust the controls, such as button positions. Visual Basic has such ...
alancc's user avatar
  • 453
4 votes
2 answers
1k views

Terminate a 'sleeping' thread

I have a task I want to run in the background and not interrupt the GUI thread to check for new program versions. When the application starts, it immediately queues a thread to wait 15 seconds then ...
Ranky's user avatar
  • 117
1 vote
1 answer
1k views

Problem with ADO query connection to a DB Grid in Delphi?

Problem background: So I'm trying to display a table (the specific table gets selected in a radio group in my GUI) from my database normally in a DBGrid so that when a user types in a SQL query they ...
PrimeBeat's user avatar
  • 444
1 vote
1 answer
158 views

Other Ways to Check if String is a Regular Expression

I have this function to check if a string is a regular expression and it works fine : function IsValidRegEx(aString: string): Boolean; var aReg : TRegEx; begin Result := False; if Trim(aString) =...
Ago's user avatar
  • 755
-1 votes
1 answer
981 views

How to get first-time output out of a richedit in Delphi?

I have a problem when my code outputs to a rich edit. When I click on the button to calculate everything and then display everything it doesn't output the generated ClientNum and Price. However, when ...
PrimeBeat's user avatar
  • 444
2 votes
2 answers
950 views

How to use a SQL where statement in delphi properly?

I have a problem with issuing a SQL statement. I know that the English value should be a string on its own and I've tried that but it keeps throwing me one of these errors procedure ...
PrimeBeat's user avatar
  • 444
0 votes
0 answers
307 views

How to search registry with wildcard in Delphi

I am using a Teensy 3.5 that I am programming as a joystick. It works great until I use a different Teensy based joystick on the same computer. Windows will not recognize it properly. This is a know ...
E Demers's user avatar
  • 103

1
2 3 4 5
52