Most voted "delphi" questions
Delphi is a language for the rapid development of native applications for Windows, OS X, iOS and Android applications. The name refers to both the Delphi language (a modern evolution of Object Pascal) and its IDE, which is used to help edit and debug Delphi projects.
Learn more…1,390 questions
Sort by count of
-
5
votes1
answer2525
viewsHow to convert utf-8 text to ANSI. Delphi 2006
How to convert text utf-8 for ANSI. The words they use "~" and "´" are coming out wrong, see for example the use of the word "PREPARATION" coming out: "PREPARES 플O" when generating file .CSV using…
-
5
votes2
answers221
viewsIf there is hint or Warning the compiler cancels the compilation
I would like that when compiling an application and if it has any Hint or Warning, the execution is suspended, generating an error. Does anyone know if it’s possible? Edit1: Warning’s can be treated…
delphiasked 7 years, 2 months ago Jonas Azevedo 73 -
5
votes2
answers2189
viewsEdit Currency Delphi Firemonkey
I need to format an Edit in the format 0,00 in Firemonkey, using preferably the event ChangeTracking. I tried to use the following procedure that did not resolve. procedure FormatadorMoeda(pEdit:…
-
5
votes1
answer588
viewsHow to know which object is focused at runtime
I see you already have a question similar with mine only that is in C#. I’m doing a field check routine and when one of the date fields is empty it gives the message. I need that when one of these…
delphi delphi-10 delphi-berlin delphi-tokyo delphi-seatleasked 6 years, 7 months ago Edu Mendonça 2,564 -
5
votes1
answer373
viewsIntegrating Delphi to Word (enabling Save Word button)
Some time ago I created a system that integrates the MS Word with the Delphi, only that the button of Save Word gets disabled. It would be important that this button was enabled, because it is…
-
5
votes2
answers858
viewsComparison of variables of different type with conversion returns incorrect result
I have the following code var Valor1: string; Valor2: Double; begin Valor1 := '150.15'; Valor2 := 150.15; If StrToFloat(Valor1) = Valor2 then ShowMessage('Iguais'); end; In this situation, sometimes…
-
5
votes0
answers51
viewsIntercept constructors and destructors of all objects in Delphi
I use a feature on my system where some users may have access to scripts in Pascal Object and can customize some rules. This is generating a certain problem of Memory Leak, because just as a…
-
4
votes1
answer668
viewsPick up mouse position on virtual machines
I’m having a problem getting the mouse position in a virtual machine. I have a macro program on a virtual machine that performs a series of loop actions, but it can happen from the catch action and…
-
4
votes3
answers2309
viewsUpdate secondary form without changing primary focus
I developed a program in Delhi that has two Forms, one with a grid and another with a map, the operation is simple: when clicking on the grid the position of the vehicle is updated on the map, the…
-
4
votes2
answers5558
viewsIs there any way to disable Delphi’s "Debugger Exception Notification"?
I would like to disable the function from which Debugger notifies me of an Exception in a code snippet. Example: try Text := CurrToStrF('Erro', ffNumber, 2); except Text := '0,00'; end; During the…
-
4
votes1
answer2247
viewsHow to stop a Thread for a certain time without using a Timer?
Explanation: Next, I have a TThread running parallel to Main Thread. And I have a routine to give fade image. Well, the important thing is that I realize this fade in a given time in milliseconds,…
-
4
votes2
answers690
viewsWhat is the cause of using SELECT null FROM RDB$DATABASE
I don’t understand this SELECT null FROM RDB$DATABASE: SELECT CK.IDCHEK, CK.DESCHE, (SELECT null FROM RDB$DATABASE) AS ENTEGU FROM TC_CHECKL CK ORDER BY CK.IDCHEK It looks like it goes in an…
-
4
votes1
answer508
viewsHow do the visual components of Delphi 2010 follow the visual standard of Windows?
In Delphi 2010 the interface components (buttons, etc.) are all square, Windows 95/98 style. How do I make it adapt the visual pattern to the latest versions of Windows?
-
4
votes2
answers1731
viewsHow to handle dependencies (DLL’s) in Delphi/Lazarus?
How do I find out which ones DLL’s I must distribute along with my application for it to work on any machine? I know Installshield - which does business in an automated way - but I would like to…
-
4
votes1
answer713
viewsHyperlink in a Dbgrid field
I am making a small internal software to research extensions in my company. In addition to the extensions I also put an email field in the database as can be seen below: My purpose is to click on…
-
4
votes2
answers260
viewsThreads with size set via code
I have a system that at certain times uses more than a thousand threads simultaneous and unfortunately accurate run in environment 32-bits. For default, the Delphi allocates 1kb for each thread new,…
-
4
votes2
answers495
viewsServersocket IP lock?
I have developed a socket system in Delphi. It is possible to block an IP to not connect to my server? Obs: The components were used: SERVERSOCKET and CLIENTSOCKET.…
-
4
votes1
answer591
viewsHow to add subitens of a Listview to a Memo?
I have a Listview with 5 fields. I need to take the Listview number 5 field and add it to a Memo. I tried it this way: Memo1.Lines.Add(LV1.Selected.SubItems[5]); Unfortunately it didn’t work. It…
-
4
votes1
answer752
viewsAssociate a file with an application made on Lazarus on Linux
I developed an application on Lazarus on the linux platform for printing reports, now I need to click on the file with any extension, ex arquivo.gsa , open my application Lazarus on linux. In…
-
4
votes1
answer1818
viewsFloating Point Error
Follows the code of total price that is giving floating point error`: //Pr. Total sgItens.Cells[5,l] := FormatFloat('###,###,###,##0.00',StrToFloat(copy(lTemp, 210, 14))); cont:=…
-
4
votes2
answers1829
viewsDifficulty running emulator for Android
I’m not getting to run the emulator Android. If I try to run the applicative I get a message from IDE: The Selected Emulator is not running. Do you want to start it? Of course, there’s no emulator…
-
4
votes3
answers1370
viewsUse of parameters in the "in" clause in a Tibquery
I have the following SQL command in the SQL property of a Tibquery component in Delphi. SQL command used in the component with parameters: select pro_codigo, pro_nome from produtos where…
delphiasked 10 years, 5 months ago Johni Douglas Marangon 393 -
4
votes1
answer747
viewsHow to implement a process queue in Delphi 6?
How to implement a process queue in Delphi 6 as the TThread.Queue of the newer versions? What I need is to implement a queue for recording logs with Delphi 6. In the newer versions I have the…
-
4
votes3
answers1277
viewsReading in Delphi XML generated in Excel
I am generating an XML by Excel itself (file type XML Sheet 2003). The generated file has the following XML data standard: <Row> <Cell><Data…
-
4
votes1
answer4167
viewsDefining an array vector
I’m learning Pascal and I’m having basic syntax problems to define a vector type variable. Here is the statement: var x:array[0..225] of String; I would like to assign the following values and in…
-
4
votes2
answers3095
viewsReading txt file with multiple columns to insert in Tlistview
I have the following function: var Colunas : TStringlist; Item: TListItem; begin Colunas := TStringlist.Create; Colunas.Text := StringReplace('00:46:30@21/08/2014@Carlos dos Santos@São Paulo',…
-
4
votes4
answers3097
viewsPath is file or directory (folder)
How do I check if a path points to a file or folder? I have no idea how to do it. A folder or directory path would be: C:\Program Files\Embarcadero\RAD Studio\10.0\bin A file: C:\Program…
delphiasked 10 years ago Gabriel Sales 1,257 -
4
votes2
answers7237
viewsExtract text between HTML tags with Indy Idhttp with Delphi
I have an html site that contains: <html> <head> <title>Teste</title> </head> <body> <h1>Teste 1</h1> <h2>Teste 2</h2> </body>…
delphiasked 10 years, 2 months ago Rafael Oliveira 41 -
4
votes2
answers699
viewsDelphixe5 X Permission Administrator
I need to run a program in Delphi as Administrator, I already put the manifest file, and even then it does not work, follow my manifest file. <?xml version="1.0" encoding="UTF-8"…
-
4
votes2
answers4192
viewsBuild and build. What are the differences and when to use?
In some IDE’s there are 2 options to generate an executable file: compile and effect a build. Both generate a new file executable from source code, ready to run. What is the difference between the 2…
-
4
votes1
answer2075
viewsHow to use Tfdjsondatasets in Delphi XE4?
Explanation Today I was seeing an example called FireDACJSONReflect in the Samples folder of Delphi XE6 and I saw that it was very interesting how the server communicated with the client and I would…
-
4
votes1
answer347
viewsGroup tables into a single
We are updating a system developed in Delphi q stored the data in access tables for Postgresql. So far so good, however, I have come across the following situation:: In the old bank we had the…
-
4
votes1
answer179
viewsRead Ini from a website
I want to read the ini file of a site, but I’m not getting. I tried so: inicheck := 'http://pokestage.ddns.net/patch/CHECK.INI'; conf2 := TIniFile.Create(IdHTTP3.Get(inicheck)); version2 :=…
delphiasked 10 years, 1 month ago Gabriel Sales 1,257 -
4
votes1
answer876
viewsEncapsulate Tclientsocket connections in Multithreads
I have a variable number X of electronic equipment (Weather stations) in my local network, each equipment provides a Serversocket connection with an IP and a specific Port, I have an application…
-
4
votes1
answer2899
viewsCalculation of dates in Firebird
I am created a report to demonstrate the period of removal of employees, for that I need to calculate the days, months and years that the same stayed away, and I’m having a problem, in Firebird use…
-
4
votes2
answers1998
viewsOpen xls (password protected) file in Delphi and save data in Firebird table
I have an office file (.xls), password protected, which has several lines. I want to search the contents of the column 1 and knowing the row that the result is found I want to save this single row…
-
4
votes1
answer1442
viewsReport display error (Fastreport) in Multi-language software
I have the following error in displaying a report made in Fastreport. This error started to occur after doing the Internationalization of my software using the native features of Delphi XE7…
-
4
votes2
answers2571
viewsHow to improve clientdataset query performance with many records?
When I am searching for all the clients table record, which are many, from a remote database and displaying on a Dbgrid, this process takes a lot of time. How do I improve the performance of…
-
4
votes1
answer2920
viewsRegular expression in Delphi 7
Guys, I’m new to programming on Delphi 7, and also regular expressions. Delphi 7 because in the company I’m working at, for other reasons, they have to use Delphi 7. I need to work with regular…
-
4
votes1
answer2202
viewsDatasnap error with Indy
I made a server application that calling the methods by Browse, everything works perfect, but to test my methods I built a client using TdHTTP and I call the methods as follows: procedure…
delphiasked 9 years, 9 months ago Aparecido Silva 113 -
4
votes2
answers2442
viewsRun a java Jar by Delphi
I wonder if there is a way to execute a jar by Delphi and give commands to it as if it were a command line. The truth is that I have a java application that no longer has access to the code and it…
-
4
votes1
answer3305
viewsCreating bat at runtime and process in Delphi
I have two functions that create a file bat and runs it, but I’m just not getting to create the process (CreateProcess returns False) and I can’t identify the error. I use Windows 7, 64 bit. I must…
-
4
votes1
answer3054
viewsHow to use Windows variables in Delphi?
Hello, I’m creating a project on Delphi, However, it needs to create some files, it wouldn’t give a good impression if it did this where it is, so I need these files to be created in the temporary…
-
4
votes2
answers798
viewsApache + Delphi XE7 + Datasnap. Memory problems
I developed a program with Apache, Delphi XE7 and Datasnap. My Apache httpd.exe consumes memory until it gives the "Out of Memory" message so I need to restart Apache. I configured Servermodule…
-
4
votes1
answer1342
viewsHow to leave a semi-transparent Delphi form?
Hello, to make it easier to understand see the example of the image below, thank you for reading my question!…
-
4
votes1
answer248
viewsTimeout in processing
I’m doing an integration with SAT, when I can’t communicate with the equipment the application hangs. Is there any way I can stipulate a time limit for this process to run, canceling the operation…
delphiasked 9 years, 4 months ago André Angelucci 129 -
4
votes1
answer854
viewsHow to download from Delphi via FTP servers with authentication?
I have some files on an FTP server at Hostinger, and these files were left there as links from FTP servers never change. As they are very important to make updates in my application, Delphi should…
-
4
votes2
answers579
viewsTwo threads running the same function
I have a situation where in Delphi I have two threads that perform a function that ping in a Firebird database. I use this to sync data from my PDV (sending and receiving). But as they run at the…
-
4
votes1
answer2941
viewsAdd an if with 2 conditions
I have the following variables declared: n_var:= strtoint (En_var.Text); n_raster := strtoint (En_raster.Text); And I would like you to make a condition by comparing their values for example: if…
delphiasked 9 years, 1 month ago Guilherme Lima 3,129 -
4
votes1
answer360
viewsDisplay Average in an SQL query
I want to conduct a search in a query So far I have only been able to display the total value of the records. the idea is to show the spending average. Then it would be the (total / quantity)…