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
-
0
votes1
answer98
viewsDelphi RTTI change the property value of an object that is owned by another
I have the following var vEstado : TEstado; begin vEstado := TEstado.Create; vEstado.Codigo := 1; vEstado.Nome := 'ESPIRITO SANTO'; vEstado.Sigla := 'ES'; vEstado.Pais.Codigo := 100;…
-
0
votes1
answer142
viewsError compiling in Delphi: expected BEGIN but Received UNIT
I try to compile and this error appears: expected BEGIN but Received UNIT at line 9 follows the code. Unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,…
delphiasked 6 years, 3 months ago lucas gomes 3 -
0
votes0
answers265
viewsCAPICOM use for signature in Delphi
I’m using the capicom.dll on Delphi to perform the signature on files (planned in .pdf). I’ve been able to read the certificates My of the area CAPICOM_CURRENT_USER_STORE. But I have the following…
-
0
votes2
answers330
viewsTopenpicturedialog does not take the path from the Images folder
I have in my form a component TOpenPictureDialog to open the Images on a system, only instead of it taking the full path of the image file it only takes the alias. Ex How I need : 'C: Users User-03…
-
0
votes1
answer352
viewssetFocus in the grid column with the name of the field in the database
When I try to focus on a specific column by the name of the field in the database, it is not right. However if I do putting the number in the order of the column, example column 4, I know, but I…
-
0
votes1
answer202
viewsCapture Position from a Scrollbox’s vertical or horizontal bar
I created a Scrollbox and within it several Panels. When the amount of Panels created is large, the Scrollbox itself automatically creates the vertical and horizontal scrollbars for me. What I need…
-
0
votes1
answer228
viewsDelphi Problems When Listing XML Sub-Node
I have the code below, but at the node of [ICMS]. he puts it in anyway line I’m not getting to read the children. The same is happening with the [PIS] and [COFINS].* It does not obey level 2. How to…
-
0
votes1
answer958
viewsHow to run bat file by Delphi
Folks I am trying to run a bat file that is in the same exe folder, however I tried it in several ways and it does not run. WinExec('startNodeJS.bat',SW_SHOW); It does not run the bat, this bat is…
-
0
votes1
answer50
viewsShould I use First after using Open in Firedac?
When I use Fdquery to perform a select that returns n records, I need to use the . First command after the . Open to make sure it stays on the first record? Example: QryAux3.Close; QryAux3.SQL.Text…
-
0
votes1
answer191
viewsError: interface not supported. Delphi 10.2 Tokyo
Error while trying to save Delphi 10.2 tools=> options window I’ve tried reinstalling the IDE image to see if it’s resellery. I can only close the window if "Cancel" the operation. Does anyone…
-
0
votes1
answer68
viewsLink in Statusbar bar Delphi 10
I need to put a link in the status bar of the system, clicking on it will open another function that is already ready, a StatusBar has 3 panels and only 3 should open when click. I am using the…
delphiasked 4 years, 9 months ago E. Franklyn 37 -
0
votes1
answer64
viewsMultithreading with connection pool "Duplicate database name 'XXX'"
I’m developing a service to multithread an old source code that uses BDE and DBX, so that each thread has its own connection I developed a Singleton with connection pool to which it uses the method…
-
0
votes1
answer224
viewsDelphi Service Application: How to install the service by passing parameters that will be read via code when running?
I created a simple service application by Delphi. I need that at the time of installing the service in windows, I pass some parameters that will be read and used at the time the service starts:…
-
0
votes2
answers644
viewsHow to include data from a multi-line query in a memo using Delphi?
Good afternoon. Work on a legacy system and need to put query information into a single memo object. Code follows. MyQuery.Close; with MyQuery.SQL do begin clear; add(' select TOP 8 nuentrada,…
-
0
votes1
answer243
viewsHow to add Sender parameter in thread onterminate?
I have a thread that performs a action and in onterminate performs a secondary process. It works that way: procedure qualquer; var Thread: TThread; begin Thread.CreateAnonymousThread( procedure()…
-
0
votes1
answer90
viewsChecklistbox - how to pass a checklisbox to a function in Delphi
I need to create a function where I pass to the function a Checklistbox and this function will store in a variable the values of the checklistbox. function PegaDescricao(checklistbox .......... ) :…
-
0
votes3
answers50
viewsSintax error at or near "Select"
I am trying to display the contents of the Postgressql database with the employee call table, using the Botton and Bdgrid components of Delphi to display, I entered the commands like this:…
-
0
votes1
answer178
viewsAdding items dynamically in Clientdataset
How can I put the text of a TMemo separated by semicolons (;) as records in TClientDataSet. Example: Code;Category;Phrase;Author 1;Motivational;Sentence 1;Author 1 2; Proverb; Sentence 2; Author 2…
-
0
votes0
answers74
viewsDoubt how to make a thread with select and cancel query executed in the database
I am running a query within a thread and set a time limit for it to run or else stop would be the user himself can cancel the select. The problem is that I stop the thread but the query keeps…
-
0
votes1
answer91
viewsproblem when running select on more than one table in Delphi and Firebird
select works on Firebird, but error -104 on Delphi IBQuery2.SQL.Add('select l.jb_cdempresa, l.jb_cdfilial, p.dtvencimento, l.jb_cdcontacredito, p.vlrpago,'); IBQuery2.SQL.Add('l.jb_cdcontacredito,…
-
0
votes3
answers695
viewsHow to create a JSON Object in Delphi
I’m trying to create a JSON with values that have been populated by the user. So far I have it, but it’s not working procedure TOAuth2TesterFrm.Button2Click(Sender: TObject); var nome_evento:…
-
0
votes1
answer52
viewsSubclass array of a superclass in Delphi XE7
I am trying to make an array of subclasses in this format: arrayReg : Array[0..1] of TRegDom = (TRegDom0000); Tregdom0000 being a subclass of Tregdom (Tregdom0000(Tregdom)) and gives an error of…
-
0
votes1
answer148
viewsHow to pass more than one parameter in REST DEBUGGER
Good afternoon.. I created a Rest Server -> File -> Others -> Delphi Projects -> Datasnap Server -> Datasnap REST Application. In Unit Servermethods I created a Function..:…
-
0
votes1
answer175
viewsProblem with HTML code when sending email using Acbrmail
I am using Acbrmail to send a standard Html that is hosted on the Web. I take the Html source code from the Utf8tostring(idHTTP.Get()) and replace the tags needed to send with Stringreplace().…
-
0
votes0
answers26
viewsHow to mouse drag objects into an HTML page?
Hello! I use the delphi6 and twebbrowser component htmldocument2 and on the screen when placing an image I wish I could drag from one side to the other for easy localization. For what I have been…
-
0
votes0
answers62
viewsCan’t enter Memo by clicking the mouse
In my project I have a TMemo and a TDBMemo, all of them have implemented an input and output event of the component, from a while to here began that error of not being able to enter the memo by…
-
0
votes2
answers518
viewsFirebird perform automatic reset on Generator
Environment : Linux server running Firebirdcs 2.5 Superclassic ; desktop application Delphi 7 Dbexpress; hundred of machines consuming. Dear friends, In the database there is an order table where…
-
0
votes1
answer78
viewsFinalizearray Example
I’m trying to clear a vector after performing a procedure, since I need to use the same vector to make the next loop of the procedure. After a lot of research, I found the appropriate filter to…
-
0
votes0
answers25
viewsMedia in a Pivotgrid
Hello to everyone as the image below would like to calculate in a Tcxpivotgrid, in the summary (last record), the average unit value (total value divided by the total Qtde) and not the average unit…
-
0
votes0
answers34
viewsDelphi FMX . Setfocus
In a field validation (Tedit) at Delphi Firemonkey, how do I make the component (Tedit) not lose focus? procedure TFrmPes1101C.EditTabDataNascimentoExit(Sender: TObject); begin inherited; if…
-
0
votes1
answer29
viewsHow to Disable one of the items in a Tlistbox!
I wish I could be Disable one of the items in a Tlistbox. And I’ve tried the following ways and I haven’t succeeded. ListBoxMenu.ItemIndex(0).Enabled := False; ListBoxMenu.ItemIndex[0].Enabled :=…
-
0
votes0
answers49
viewsUnit JV build error of D2010 p/ Tokyo
I’m trying to compile a system that was developed on D7, but it’s running on D2010, now we’re converting to Tokyo, when I try to compile the system I get the following error msg:…
-
0
votes1
answer59
viewsCompilation Directives in BPL s
I have an application developed in Delphi XE7, running on an Oracle server, Windows Server 2012 R2. Our system is modularized into several BPL s. Often the error occurs External Exception C0000006,…
-
0
votes2
answers231
viewsDifference between Mysql queries - Delphi
Good afternoon, I’m doing routine to close the inventory both in SPED and Sintegra, but is giving difference in the sum of the two. I’m using date as reference 31/12/2018. I’m using the same query…
-
0
votes2
answers63
viewsHow to open a form behind an already opened Delphi form
How did I open a form behind one another form already open? This form that is open have a time to close, when to close, I need the second form is open so modal.…
-
0
votes1
answer30
viewsUnexpected end of random command in Firebird
I’m having a problem in the system I develop, for some reason I get the message: Unexpected end of command - line 1, column 214 But I can’t find which SQL the problem is occurring. From what I found…
-
0
votes1
answer1575
viewsYou can open excel in Excel without Excel installed;
I am supporting a system that the programmer made use of Oleobject to open and read an Excel file It turns out that I work with brOffice and error Delphi when I try to open excel because the Ole…
-
0
votes0
answers13
viewsAuto increment build number does not work
I have these settings for version information when building my Delphi 10.3 project in Field Builder 2.1.745.3. Even if the "Auto increment build number" is checked, the number never increases. How…
-
0
votes1
answer469
viewsSend special character in Request body via Httprequest in Delphi XE2?
I am consuming an API (POST), via Delphi for sending NF-e XML. I am using Httprequest. In the body of the request (body) I must pass the xml as follows: xml= But the issuer’s social reason (xName)…
-
0
votes0
answers151
viewsDuplicate call from onclick event in Delphi
When running the onclick event (from the btn_ImportarNFe button) the program calls the same onclick event again from the method call Nfe.EnviarEvento(StrToInt(IDLote)); from the second code snippet…
-
0
votes2
answers323
viewsDelphi - Find and Save Text Lines
Good night, I have a text file with several lines, where the lines that interest me are those that start with 'PU' and 'PD' where within these lines there are values that I would like to assign to…
delphiasked 5 years, 9 months ago Guilhermeths 33 -
0
votes2
answers220
viewsClientdataset for Excel
I’m exporting a clientdataset for excel with the Clientdatasettoexcelfile function, but one of the information is CPF/CNPJ ex: 00112312312, that is, it contains zeros(0) at the beginning of the…
-
0
votes0
answers58
viewsUsing the Add method of an Object inherited from an Objectlist
I have a Tprodutovmi class and to be able to better manipulate the information within a list I created the Tprodutovmilist class that inherits from an Objectlist. But every time having used the ADD…
delphiasked 5 years, 8 months ago Higor Craco Baltieri 1 -
0
votes1
answer226
viewsInterbase database connection error
Good afternoon, I’m having trouble configuring the database connection in Delphi 10.3 Community Edition. I am trying to connect to Interbase by Firedac and gives the error below when testing the…
-
0
votes1
answer249
viewsCalculated field is not editable in dbgrid
I have a DBGrid, one FDQuery and a DataSource that bring values from a table. In this FDQuery I created a calculated field of the type Integer called mult. The purpose of this field is for the user…
-
0
votes0
answers1434
viewsConsume Rest API in Delphi
I am trying to consume API Rest, made in php, from a Delphi application. In summary the API receives a field called name, another field is the parts parts, but in this case the field is a parts Arry…
-
0
votes1
answer41
viewsRun Thread Serialized
I have the following question: 1 - I have a routine that runs through a database, which has file information you need without writing, may have up to 100 records. 2 - The application needs to go…
-
0
votes0
answers131
viewsObject for Jsonvalue via Datasnap
Ola, I have the following object: TResult = Class private FStatus : TStatus; FMensagem: string; FEntidade: string; FLista : TFDJSONDataSets; //tentei esse FLista2 : TFDMemTable; //segunda tentativa…
-
0
votes1
answer56
viewsAccess Violation variable type Txsdate
I am doing the integration with the webservice of Total Express Transport and importing the wsdl made available by them has been created several properties where types are Txsdecimal and Txsdate.…
delphiasked 5 years, 4 months ago Ariel Inacio Correa 513 -
0
votes2
answers76
viewsHow to extract the attribute from within A HREF with Delphi?
Guys I researched a lot and could not solve this problem. Here’s the thing, I can extract the text information, for example: <span class="style13">texto para extrair</span> But what you…
delphiasked 5 years, 3 months ago willianvor 3