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
-
2
votes1
answer197
viewsAdodataset Delphi Edit
I have a ADODataSet with the following consultation DECLARE @ID_CONTRATO_EMPRESARIAL INTEGER = :ID_CONTRATO_EMPRESARIAL BEGIN WITH V1 AS ( select C.ID_CONTRATO, COUNT(CASE AD.FUNCIONARIO WHEN 'TRUE'…
-
2
votes2
answers363
viewsError '15.0' is not a Valid floating point value when saving . xls
While trying to save a file. xls I am having the following error: '15.0' is not a Valid floating point value I’m trying to save like this: var HCalc : THojaCalc; vArquivo : String; vArquivo :=…
-
2
votes1
answer132
viewsAndroid Graphic Data Listing
Good morning, I have an application where I can visualize the customer data in a graphic and listing form, I wanted a suggestion from you which component I could use in mobile to view the data in…
-
2
votes1
answer865
viewsLocate in the Delphi
I have a DataSet that returns multiple rows and in one of the columns I have the Situação of the record that may be: open, closed, in conference, conferred, finalized... I need to check if there’s a…
delphiasked 8 years, 6 months ago Pablo Tondolo de Vargas 5,444 -
2
votes1
answer1011
viewsMove all files with the . prj extension to a folder
I would like to know whether the following situation is possible: There are several folders inside each other... and within them there are files with the extension .prj. It is possible to read all…
-
2
votes1
answer798
viewsDelphi - Find out if the application has administrator privileges.
Good afternoon, I need to know if an application written in Delphi is running with administrator privileges or not. Does anyone know any way to get that information?
-
2
votes1
answer256
viewsShellexecute without Security Warning
How to run an application with ShellExecute and prevent Windows from issuing the "Security Warning"? Is there any parameter that can be sent to avoid the warning? I have tried to apply some in…
-
2
votes1
answer255
viewsShow DBF values above Mapwingis + Delphi points
I have the following code to open a file . shp and plot it on a component of MapWinGis Map1. procedure TForm1.Button1Click(Sender: TObject); var shp: Shapefile; HandleLayer: integer; begin shp:=…
-
2
votes1
answer405
viewsAttach file using Webbrowser Delphi
I am developing a tool to automate the sending of emails from the company, I wanted to know how to automatically load an attachment as in this screenshot Remember that I need to make use of…
-
2
votes2
answers2450
viewsImage on Tspeedbutton with Timagelist
Greetings to all! I’m starting to develop in Delphi 10 Seattle, before I used Delphi 7. I’m trying to create a toolbar, I’m using Ttoolbar with a Tactionlist, Tspeedbuttons and Timagelist. I’m using…
-
2
votes0
answers718
viewsHow to manage multiple transactions with Firedac?
Greetings. I have a Tfdconnection and would like to have two Tfdtransactions in my project. Tfdconnection is not connected to any Transaction, only Transactions are connected in Connection. Only…
-
2
votes1
answer189
viewsDelphi - Date Comparison Error
I compared two dates. When the variable 'date' contains the date of TODAY, the code understands that it is smaller if data < now then begin ...//se a variável DATA fosse igual a hoje (now), ele…
-
2
votes2
answers939
viewsLoad Dynamic DLL (Bemafi32) in Delphi
I need help loading the DLL BemaFI32.dll dynamically in the Delphi. My code is like this: function _Bematech_FI_NumeroSerie(NumeroSerie: AnsiString): Integer; var xBematech_FI_NumeroSerie : function…
-
2
votes1
answer364
viewsHow to know when the computer will shut down/restart/hibernate/suspend in Delphi?
I have a system that works with websocket in Delphi with mORMot, when I restart the PC or when I disconnect it runs Onclose and Ondestroy and through that I can remove the callback of the logged in…
-
2
votes2
answers518
viewsProblem with form placement
I have an application that works as follows: There is a main form and I open "children" forms during execution, for registration, research, etc. The intention is to always open the child forms in…
-
2
votes1
answer414
viewsOnclik on the dbgrid line
I’m developing a system, and I have a dbgrid where I list the results of a query, as it would be possible when I click on a certain record (for example in the name of a person in the NAME field) , I…
-
2
votes1
answer4309
viewsGenerate JSON Delphi 7 file
I need to generate a JSON file with Delphi 7. I use the LKJSON library. I even managed to generate the file, but it was not the way it would need. Below code I used to generate JSON: procedure…
-
2
votes2
answers1390
viewsIs Locating a Clientdataset very expensive?
Make a locate of a dataset connected to the bank, certainly is quite costly. But make a locate in a dataset with in-memory data only, is a good practice? Or would it be better to create a array?…
-
2
votes1
answer793
viewsDelphi Decimal Converter for Hours
I have the following decimal 0,0159722222222222 I want to turn into hours in the following format 00:23:00.
-
2
votes2
answers263
viewsDisable editing of Firedac dataset without generating an exception
Suppose a FDQuery with a select simple be connected with a DBGrid. I want to prevent the user from making any edits to the registry. I know there’s a choice EnableDelete in the FDQuery, but if the…
-
2
votes1
answer210
viewsHow to close a "folder"
I have a project in Delphi 2010 that when I click on a button opens a directory, this is the code: DirFolder := 'C:\teste'; ShellExecute(Handle, 'open', PChar(DirFolder), nil, nil, SW_SHOWNORMAL);…
-
2
votes2
answers2187
viewsHow to capture a dbgrid Row click event?
I would like to know how to catch the event click of any line, returned from the GridView. For example, the GridView shows me 3 lines, I want to click one of these lines and perform a certain…
delphiasked 8 years, 1 month ago Lord Voldemort 89 -
2
votes1
answer241
viewsDevelop PDF417 with Delphi
Good afternoon. I use an old report generator for Delphi XE7 (pReport). I have the source code of it, and I’ve already made many changes to it. Now one more challenge, I need to include a new type…
-
2
votes1
answer714
viewsReturn image by Web Service REST Server
I have a Web Service REST running, this web service does the query on ERP when the client requests the request of a given data, it needed to return the image that the client made the request and…
-
2
votes1
answer608
viewsHow to make persistent connection using Websocket and a Delphi Socket server?
I’m trying to create communication via Websocket with a Delphi socket server, 1st Step, readystate 0 - Server receives Websocket header. Step 2, readystate 3 - Go to disconnected. Javascript: var…
-
2
votes3
answers633
viewsTdictionary, how to destroy it
I’ve tried every way to destroy TDictionary but whenever I have the ReportMemoryLeaksOnShutdown Active he always leaves something untouched. I’ve tried to run the list and destroy item by item.…
-
2
votes0
answers216
viewsHow to create a Windows service on installation
I will distribute my Delphi application through a standard installer created with Install Shield, but it needs to create a Windows service to work. I know how to create this service manually, but…
-
2
votes1
answer203
viewsError trying to update Clientdataset Fields in Delphi 7
I’m migrating an application from Delphi 7 that used to be in FireBird and now I’m connecting to the bank PostgreSQL, but a variable error was occurring, with the help of the Stack people, I…
-
2
votes1
answer263
viewsUPDATE syntax error in Delphi (Mysql)
Good evening... I am using a procedure in msm style for all modules of my software using msm UPDATE structure and all worked, however when I went to do the update of system users this returning me…
-
2
votes1
answer780
viewsExport report to PDF
Use the pReport of the extinct VTK Tools as a report generator in the Delphi XE7. It does not have native export to PDF. Today, I export to PDF calling a virtual printer with parameters. But I don’t…
-
2
votes1
answer383
viewsDelphi - Join two different database tables
I have a Firebird (F) database with professional data: Nome, Idade, CBO I have a Paradox table (P) with occupation data: CBO, Descrição What I want to do is unite these two tables in a way that…
-
2
votes3
answers3550
viewsHow to make your Android virtual keyboard visible/invisible while Tedit is in focus
I use Delphi XE7, wanted to know how to treat this issue, Seto the focus on TEdit, it opens the virtual keyboard Android, Press the back it closes the keyboard and the focus stays on the TEdit, but…
-
2
votes3
answers722
viewsCount in Firebird 3.0 Bigint X Firebird 2.5 Integer
In my system, after the migration of Firebird 2.5 to the 3.0, many reports and other functions began to give problem stating that the expected was Integer and the current is LargeInt. I took a look…
-
2
votes0
answers1018
viewsDelphi compiled program does not open
Good afternoon, I have software written in Delphi and noticed that the following problem occurs: If I use the option to compile in debug mode, the executable is 32MB and works correctly. If I use…
-
2
votes2
answers790
viewsInputbox lock CTRL+V
I have the following code: vResultado := InputBox(Application.Title, 'Leia o cartão de Segurança:', ''); There is a way to block copy and paste in Inputbox?
-
2
votes1
answer297
viewsWhat’s wrong with this Delphi code?
On the mainform onCreate, I have the following code: procedure TForm1.FormCreate(Sender: TObject); begin QuickRep1.Prepare; QuickRep1.Printer.Load('arquivo.qrp');…
-
2
votes1
answer102
viewsSQL abstraction with Firedac
I would like to know how best to work with abstraction of SQL in a multi-bank system. For example: Firebird: SELECT SUBSTRING(nome FROM 5 FOR 8) FROM clientes Oracle: SELECT SUBSTR(nome,5,8) FROM…
-
2
votes1
answer1450
viewsHow to pass parameters to run on a Delphi thread
I’m having trouble assigning a variable value inside a Thread Run. need to assign a value to the variable Name through the Fname that is inside the execute of a thread. follows the example I’m…
-
2
votes2
answers1031
viewsHow to count down in a Messagebox
Use Delphi XE7, needed to put a countdown on a MessageBox, on the button Não. For example a 10 sec count next to the button caption Não (10) and so it decreases Não (9). My alternative is to create…
-
2
votes0
answers40
viewsDrag Treeviewitem to Form
I’m putting together a project with Firemonkey. In this, I want to drag a Treeviewitem into the empty form area and then run other options... The famous DragDrop. I’m not able to do it and I haven’t…
-
2
votes2
answers2393
viewsHow to customize Listview at runtime?
I’m having a problem with an example where I need to add a Text at the ListView which comes from an XML by code but does not appear when executed. Runs, but appears some warnings depreciation and…
-
2
votes1
answer641
viewsTbytedynarray for String Delphi 7
I have a method to convert a file to Base64 that returns a Tbytedynarray, and wanted to convert this Tbytedynarray to String. I’ve tried some ways and it hasn’t been working. Error :…
-
2
votes1
answer204
viewsUsing Threads to Update Windows GUI
I have a thread I want you to update a Progress bar to every iteration of a TQuery for example, but what I noticed is that to carry out the query process, I have to put the function that makes…
-
2
votes1
answer1457
viewsHow do I consume client addressing of an API I want to consume?
I have a PHP API and I’m developing a Mobile App with Delphi Firemonkey, and I need to consume the JSON data that my API returns. I would like to know how I address the client part to access this…
-
2
votes1
answer259
viewsExport Date Type to openoffice/libreoffice Delphi
How can I export a Date type to openoffice/libreoffice when I need to export a String type. SheetOpenOffice.GetCellByPosition(vCont,vlinha).SetString(Q_Assoc.Fields[i].AsString); How can I do when…
delphiasked 7 years, 7 months ago rodrigo.oliveira 1,251 -
2
votes1
answer82
viewsDelphi 2006 - 3 layers - Tsocketconnection - Tclientdataset
I have an application running in 3 layers. When the client layer does not find the server or for any other reason, correctly, I burst an error on screen, I am using Tsocketconnections and…
delphiasked 7 years, 7 months ago Caio Cesar Ferreira 21 -
2
votes1
answer2028
viewsidHTTP HTTP/1.1 401 Unauthorized error
Good morning, Already test several tips and solutions on this subject here in the forum and outside too, I’m 5 days trying to perform a post using idHttp with Design Berlin. This is my code;…
delphiasked 7 years, 7 months ago Robinho de Morais 61 -
2
votes1
answer234
viewsDisplay Hint on a disabled GRID
Good afternoon, I have an application in Delphi that has a grid with two columns, the first column being the "question" and the second column the "answer". This grid has 8 lines and each line has a…
-
2
votes2
answers1590
viewsDelphi + Firemonkey: dynamic component design created at runtime
I have a TForm which allows the system user to create components at runtime (TButton, TRadioButton, TLabel, TPanel, among others). This functionality is working, but now the need has arisen for the…
-
2
votes1
answer2460
viewsExample of Thread Pool in Delphi
How do I make a pool of Thread, I need to execute a process that contains several records, but I need to send on demand, send 10 and as you release, send more.... how can I do ? I set an example...…