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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
11 views

Delphi Indy10 IMAP Decoding MIME attachment

Using Delphi 11. After downloading an email using TIdIMAP4, scanning through the MessageParts, how do I detect if a MessagePart contains a MIME encoded attachment, and how do I decode this into the ...
Bart Kindt's user avatar
0 votes
0 answers
11 views

Delphi Refactor-Rename and Find-References failure workarounds?

I've been using Delphi 11.3 for a month or two now (after many years of using Delphi since the original), and I keep running into problems with the Refactor > Rename function and the Find > ...
gwideman's user avatar
  • 2,755
0 votes
0 answers
10 views

Delphi > Find either application of specified name but without any window is running in the system

I have an application that starts with a regular window and includes a "hide" button. When this button is clicked, the application continues running and is visible in the Task Manager, but ...
Mariusz Stefaniak's user avatar
0 votes
1 answer
24 views

Delphi BPL check for 32/64 bit [duplicate]

Is there a straightforward way to examine a Delhi BPL file for 32/64 bitness? I want to be able to do this outside of attempting to load the BPL itself - e.g. open the BPL as a binary file and read a ...
SteveS's user avatar
  • 335
-1 votes
0 answers
25 views

Convert a PDF to grayscale from a tsclient path using java

I'm trying to convert a PDF from a path on my local disk (Drive C:). This PDF is moved to a server using Delphi's MoveFile function (MoveFile(PChar(Ori), PChar(Des))). This is the fragment code whis ...
Eduardo Castillo's user avatar
1 vote
0 answers
36 views

How to upload Image completely using TIdFtp from Delphi

I'm trying to upload image via TIdFtp from Delphi but some part of uploaded image is white. The uploaded image is like below: TransferType is set to ftBinary. I think it's not related to image size ...
Holy Thirteen's user avatar
-1 votes
0 answers
21 views

Delphi 7 - Retrieve Data from SQL Access Database Table [closed]

Good day, Please assist with the following: I have a Delphi 7 project in which I capture data. It asks what product I am buying and also the quantity and then stores this data in Access. Now I would ...
Jano's user avatar
  • 9
-2 votes
0 answers
45 views

encryption of a passsword it is for my IT pat [closed]

I need to encrypt a string of 15 characters and change random letters to symbols and numbers. Can someone please help me with that part . the input of the password is coming from a Tedit and needs to ...
Ruan 's user avatar
1 vote
0 answers
95 views

Is there a bug on read-only transaction in Firedac?

Background My application randomly had read-only transaction errors, which after debugging, I realized that apparently the connection keeps the settings from the last created transaction. Should this ...
dipold's user avatar
  • 797
1 vote
1 answer
50 views

"Server-sent events" with Delphi and IdHTTPServer

With KeepAlive=True and setting header to 'Content-Type: text/event-stream' 'Cache-Control: no-cache' can the example at Delphi video streaming Http Server be adapted to implement "Server-sent ...
R.Schirru's user avatar
0 votes
1 answer
64 views

How can I stop at a given number memory alloc by FastMM4 in Delphi 11.1.5?

I set the FullDebugMode in FastMM4 and it generates the *_EventLog.txt file now. It contains the stack trace, the memory allocation number, etc. The stack trace section is very short (I don't know ...
SOLID Developper's user avatar
0 votes
0 answers
57 views

Delphi TRestClient send Body as "data-raw"

How to add body parameter to TRestClient like in Postman? If body data is defined like below as application/x-www-form-urlencoded it would be wrong: curl -L -X POST 'https://ms2.medapp.ch/rest/lg1/v1/...
F. Zeller's user avatar
0 votes
0 answers
63 views

FastReport VCL IIF Statement with variables

I am trying to use an if in my report using a variable as the condition this is what i tried IIF(<Client> = true, "Solde: " + [Solde], "Rendu: " + [Rendu]) but i get the ...
Adel's user avatar
  • 1
2 votes
1 answer
92 views

How to load a JPG image into a TImage component

I added the file sant.jpg into the code file and tried to run the code to load the image procedure TForm2.Button1Click(Sender: TObject); begin IMG.Picture.LoadFromFile('sant.JPG'); end; tried but ...
Hanro Rossouw's user avatar
0 votes
1 answer
102 views

Writeln is not working the right way it should

I am new to Lazarus and trying to write some basic code: unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, Forms, Controls, Graphics, Dialogs; type TForm1 = class(TForm) ...
ayan kulber's user avatar
2 votes
1 answer
94 views

Adding Components at runtime to GridPanelLayout

I am trying to add a group of components at runtime to a GridpanelLayout. In this case 4 sets, each set is a Tlable Tbutton Tedit Tbutton . Each Component should be in 1 row and each in its own ...
Glen Morse's user avatar
  • 2,459
0 votes
0 answers
73 views

Multiplatform automation script for delphi

I´m trying to build a automation script to build and deploy an app. Windows and Android works flawlessly, but not for iOS. It builds ok, but dont deploy. C:\Program Files (x86)\Embarcadero\Studio\22.0\...
Jose Eduardo's user avatar
2 votes
0 answers
92 views

Can Delphi's Code Formatter be called automatically every time a file is saved?

We are starting to use Delphi's Code Formatter to unify the format of everyone involved in our new project. The problem with the built-in Code Formatter is that, as far as we can see, it must be ...
Marc Guillot's user avatar
  • 6,120
1 vote
1 answer
75 views

Define Grid Panel Layout Size style property

Iam trying to add a label, button , edit and button to a gridPanelLayout. I was not sure if sizestyle auto was going to be the best or not so wanted to test it. I make my components at runtime. So I ...
glen morse's user avatar
0 votes
2 answers
91 views

TTimePicker adds a 1899/12/30 date when changed

I am busy writing a program in Delphi 11.3 that works with times. Specifically, a start and end time, and it's calculating the time spent between the two, as well as if the one is bigger than the ...
WackyWabbit's user avatar
-1 votes
2 answers
59 views

IdhttpServer basic authentication not encrypted? [closed]

I have a IdHTTPServer with a IdServerIOHandlerSSLOpenSSL which requires a login during connect, by setting the AuthRealm. This is intended to be used by a government organisation to view specific data....
Bart Kindt's user avatar
0 votes
1 answer
53 views

DWScript: Property getter/setter for object

The tdwsUnit declares a property of type TObject, as well as a getter and a setter. An instantiated object shall be stored in an "object store" on the Delphi side. The goal is to transport ...
LuWey's user avatar
  • 29
0 votes
0 answers
54 views

Fast Report VCL how to change header and footer text in runtime

I want to be able to change the text in frxReport according to user input. This is what I am doing but after saving to file the memo is empty in runtime and if I check the test.fr3 file after runtime ...
Adel's user avatar
  • 1
0 votes
2 answers
94 views

Using delphi application to ask question to ChatGpt

I'm facing on ChatGpt to create an application using delphi 11, where the purpose is send data to AI then get a response related to it. This is the code (but I get SSL protocol error on httpClient....
Gianluca Colombo's user avatar
-2 votes
1 answer
61 views

How to connect Fast Report frxdbdataset to fdquery

I have placed all of frxReport, frxDBDataset, FDQuery and FDConnection on my form, the FDConnection is correctly setup and FDQuery one is connected to it and frxDBDataset is connected to FDQuery but ...
adel bouakaz's user avatar
3 votes
1 answer
74 views

Cannot enumerate XML Tree via TXMLDocument

I try to use TXMLDocument in Delphi to enumerate a XML file. But whenever I exit the ProcessFile procedure, there will be an "Access violation" exception. I declare XMLFile as an interface ...
alancc's user avatar
  • 441
0 votes
0 answers
45 views

"Invalid pointer operation" when free TXMLDocument [duplicate]

I try to use TXMLDocument to load a XML file. However, when I try to free it, I will always get "Invalid pointer operation" exception, as below: procedure ProcessFile(const SrcFileName: ...
alancc's user avatar
  • 441
0 votes
2 answers
131 views

How to check if a Delphi form exists

I am using strings to create Available forms, but I cannot figure out how to test if a form has already been created. I only want a single instance of each form. Procedure TMainForm.CreateFormFromName(...
Seti Net's user avatar
  • 693
0 votes
1 answer
63 views

Change the color of focused and selected row in DevExpress TcxGrid in Delphi

I want to change the color of selected records (marked check boxes) and focused record in a TcxGrid by different colors.
Holy Thirteen's user avatar
1 vote
1 answer
70 views

Delphi collaborate function

Is there a way to collaborate in Delphi 11 like the JetBrain's "code with me feature"? I want my friend to code with me, working on the same Delphi project. I have searched all over but am ...
Gunter's user avatar
  • 23
-2 votes
0 answers
74 views

Why does my image not have an OnKeyPress event? [closed]

It doesn't show the OnKeyPress event in the list for my image and shape. I'm using Delphi Community Edition 11.3.
Joshua Botes's user avatar
-2 votes
0 answers
61 views

Create WebBrowser from dynamic load BPL [closed]

I honestly tried to find information on the Internet. I've been suffering for a long time. Can someone show me a working version of how to create a WebBrowser component from a dynamically loaded BPL? ...
FoxWMulder's user avatar
-2 votes
0 answers
93 views

How do you read data from a text file? [closed]

My program to read in data from a text file gives me the error that the file doesn't exist, however I have created the file and it is in the same folder as the project file, so I do not know how to ...
Marnu van Sandwyk's user avatar
0 votes
0 answers
112 views

How to improve speed of component creation in runtime

I have a form where the user can create new tabs on a TPageControl. There is a 'master' tab and then when the user clicks to add tab, a new TTabSheet is created, replicating all the components inside ...
delphirules's user avatar
  • 6,463
1 vote
0 answers
51 views

Spring4D Nullable<T> JSON serialization

Is there a way to get TJson.ObjectToJsonString() properly serialize a TNullableInteger field in an object? I tried to use an attribute on the field using a JsonReflectAttribute with a TJSONInterceptor,...
Nicko's user avatar
  • 146
0 votes
0 answers
49 views

Trying to access a protected shared folder in the LAN in a Delphi application

In Delphi code, I'm trying to access a folder on the LAN that is protected with user name and password. It could be inside a Windows PC or a NAS. I'm doing my test on my Windows 10 PC running Delphi ...
Roberto Nicchi's user avatar
0 votes
0 answers
50 views

Issue with FireDac (Delphi) when using on other computer

I have made a application on my developement machine. And this runs perfect. But now i copied it over to a other machine and when i run it i get a error [Phys][MySQL]-314. Cannot load vendor Library. ...
Born Silly's user avatar
0 votes
0 answers
45 views

How do you hide the scrollbars in the MDI Child form?

How do you hide the scrollbars in the MDI Child form? when i ran my project, my mdi child form showing scrollbar automatically. And no setting at all to show that scrollbar. it show horz and vert ...
3G_1200_Endik Jauhari's user avatar
0 votes
0 answers
47 views

Delphi codes to parse printf format specifier [duplicate]

Is there any existing Delphi codes that can parse the C/C++ printf format specifier in a given string?
alancc's user avatar
  • 441
-1 votes
0 answers
60 views

How to display only two columns of my database inside of my DBGrid in delphi

I want to Display my database using an ADOTable on a DataGrid but I only want to Display two of my columns from my ADOTable and not all 5 I tried different methods but everytime there is an error, For ...
Mark Schwarte's user avatar
4 votes
3 answers
149 views

How to compile a delphi application through command line (silent mode) which uses third party components?

I have a delphi application which uses multiple 3rd party components like DevExpress, TeeChart, etc.. I want to compile this (to make a automatic build) through command line. How can I achieve this? ...
RajKumar's user avatar
-1 votes
0 answers
61 views

After upgrading .NET Framework of a C# DLL from 2.0 to 4.8, Delphi is unable to use the DLL via COM without registering the DLL manually

I have a Delphi application that is using a C# DLL as a COM DLL. The DLL is written using .NET Framework 2.0. It is working fine without registering the DLL manually. We have decided to upgrade the ....
Santosh Vishwakarma's user avatar
1 vote
2 answers
83 views

How do I Enable a Windows Service using the JCL?

In the JCL there is the unit JclSvcCtrl, which has code for starting/stopping services. I want to enable a service before starting it, but I don't see a way of doing it via the JCL. I'm currently ...
Alister's user avatar
  • 6,547
0 votes
0 answers
51 views

Error compiling code for Android in Delphi

When I try to compile code for Android in Delphi, it shows this error: [PAClient Error] Error: E7688 Unable to execute '"C:\Program Files\Eclipse Adoptium\jdk-11.0.15.10-hotspot\bin\java.exe&...
Ney Correa's user avatar
1 vote
0 answers
67 views

Signing into a website using Indy TIdHTTP no longer works for me

Using Delphi and Indy's TIdHTTP component, I created a program simulating signing into a website. Using the TIdHTTP.Get() method, I would get a sign-in <form> containing the email address and ...
Tomas Trhlik's user avatar
-1 votes
0 answers
77 views

how to convert array to bitmap (delphi) [closed]

how can i convert an array of array of boolean to a monochrome bitmap file? Array is an example, it doesn't have to be an array. i just need to draw a bitmap mask at runtime. Bit by bit.
Serkan Ekşioğlu's user avatar
-2 votes
0 answers
101 views

Background application versus foreground application? [closed]

Is it possible with Delphi 7 Enterprise in a Windows XP SP4 installation to run as a background application? If so, how?
Kristian Sander's user avatar
0 votes
0 answers
60 views

How to replace global keyboard presses on macOS in Delphi with FireMonkey?

I'd like to build a Delphi FireMonkey application for macOS that can detect when I press 2-4 keys simultaneously, and then replace them with a full word. For example, when I press P + E together, I'd ...
Tom's user avatar
  • 1
3 votes
0 answers
110 views

Setting MainFormOnTaskBar Causing Issues with Modal Dialogs

I am working on Delphi 11.2 with an older Delphi project, pre Application.MainFormOnTaskBar's introduction, so by default it was set to False. I tried adding the following line to the project's .dpr ...
cab327's user avatar
  • 39
0 votes
0 answers
71 views

Firedac comand batches with postgreSQL connection

According to Firedac documentation https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Command_Batches_(FireDAC) In order to retrieve a dataset array, the sql command should be written as a ...
Leo Bruno's user avatar
  • 474

1
2 3 4 5
1026