Questions tagged as 'delphi'

1
answer

Using Threads to update windows GUI

I have thread that I want to update a progress bar at each iteration of a TQuery for example, however what I noticed is that to perform the query process, I have to put the function that makes select within thread, as an example be...
asked by 31.03.2017 / 14:43
1
answer

What's wrong with this code in delphi?

In the onCreate of the mainform, I have the following code: procedure TForm1.FormCreate(Sender: TObject); begin QuickRep1.Prepare; QuickRep1.Printer.Load('arquivo.qrp'); QuickRep1.ExportToFilter(TQRAsciiExportFilter.Create('teste.txt')); Q...
asked by 16.02.2017 / 01:44
1
answer

How to perform persistent connection using WebSocket and a Delphi Socket server?

I'm trying to create a communication via WebSocket with a Delphi socket server, 1st Step, readystate 0 - Server receives the WebSocket header. Step 2, readystate 3 - Already going offline. Javascript: var host = 'ws:...
asked by 10.10.2016 / 14:15
1
answer

HTTP / 1.1 idHTTP error 401 Unauthorized

Good morning,   I already tested several tips and solutions on this subject here in the forum and outside too, I have been trying for 5 days to make a post using idHttp with delphi Berlin. This is my code; procedure TfrmPlaPSync.Button8Clic...
asked by 08.05.2017 / 14:23
1
answer

How to synchronize two TListViews?

I'm working on an App for Android using Delphi XE8 and I need to synchronize two ListViews so that when the user downloads one, the other one downloads together. How do I do this in Delphi ?     
asked by 31.08.2016 / 02:08
1
answer

Data Listing Android Chart

Good morning, I have an application where I can view customer data in the form of a listing and a graphic, I wanted a suggestion from you which component I could use in mobile to view the data in graph form. Thanks in advance for your atte...
asked by 01.08.2016 / 15:11
1
answer

How do I 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 reboot the PC or when I disconnect it it executes OnClose and OnDestroy and through that I can remove the callback of the user that was logged in, but when I send hibernate...
asked by 17.08.2016 / 14:38
1
answer

Delphi - Merge two tables from different databases

I have a Firebird (F) database with professional data: Nome, Idade, CBO I have a Paradox (P) table with occupancy data: CBO, Descrição What I want to do is merge these two tables so that it stays: Nome, Idade, CBO, Descrição where...
asked by 26.11.2016 / 19:48
1
answer

ADODataSet Delphi Edit

I have ADODataSet with the following query DECLARE @ID_CONTRATO_EMPRESARIAL INTEGER = :ID_CONTRATO_EMPRESARIAL BEGIN WITH V1 AS ( select C.ID_CONTRATO, COUNT(CASE AD.FUNCIONARIO WHEN 'TRUE' THEN 1 ELSE NULL END) FUNCIONARIOS, C...
asked by 24.05.2016 / 15:06
1
answer

Return image by Web Service REST Server

I have Web Service REST running, this web service makes the query in ERP when the client requests the request of a certain data, needed to return the image that the client made the request and display in the browser. I made the f...
asked by 13.10.2016 / 19:43