Questions tagged as 'delphi'

1
answer

Error assigning Caption with Inc

I have a LISTVIEW component, multiple records are inserted into it. I need to generate Auto Increment code in the Caption of this listview according to the number of records entered. I've tried something like this: l := l + 1; Item.Caption :=...
asked by 29.08.2014 / 22:50
1
answer

Implementation relationship n for n in Delphi

Maybe it's simple for most, but I would like to know how to implement a n-to-n relationship between Mysql tables using Delphi. I created the diagram of my DB in MySQL Workbench, I created the DB, all right. My question is: do the tables creat...
asked by 30.08.2014 / 13:23
1
answer

Check uploaded image

Is it possible to check when an image has been uploaded within a TImage ? For example: I have a label that appears "Loading Image ..." when TImage loads any image, that label should disappear. Is it possible?     
asked by 11.06.2014 / 20:41
1
answer

Insert data from a TXT into a DB

While doing all these conditions, my database is responding in a strange way because literally what I'm selecting is in every line of my .txt file, returns everything, including spaces empty, which was not to occur. Follow the code:  //wh...
asked by 04.06.2014 / 03:53
1
answer

Check in the tables that appear in my first DBGrid

Follow the code: var i : integer; begin i := 0; DataModule1.ZConnection1.Database := edtDB.Text; DataModule1.ZConnection1.HostName := edtLocal.Text; DataModule1.ZConnection1.User := 'root'; DataModule1.ZQuery1.Close; DataModul...
asked by 21.05.2014 / 14:01
2
answers

Compare txt data with database data

Follow the code: procedure TfrmGrid.btnLoadClick(Sender: TObject); var txt: TextFile; l,treg,treg2, coo, ccf: integer; valortxt, valorbd : double; lTemp, valor, dtcompratxt: String; dtcompra: TDateTime; begin DModuleGrid.ZQuery1.Close; DM...
asked by 12.05.2014 / 21:08
2
answers

Variable result with IDHTTP

I need to get the result of a link and put it in a memo. I'll explain better in examples: I will access the link: http://www.xxx.com.br/teste.php?Teste (this address will return the word OK. Is it possible to access this address via...
asked by 25.06.2014 / 03:09
1
answer

Delphi Consuming Processing

My delphi XE3 is consuming an absurdity of processing, when I type a command as soon as it finishes it starts to process, as if it were to open the auto-complete screen but it takes too long, the hourglass starts to spin and takes too long, that...
asked by 01.08.2014 / 23:21
2
answers

Open Outlook by clicking an email in the TDBGrid component in Delphi

I'm making a utility where you'll get the employee's name, your extension, and your email. I would like that when clicking on the email already open Outlook. How could this be possible?     
asked by 11.02.2014 / 14:15
1
answer

Failed to connect database: Connection lost to database - Firebird and Delphi application

I have a server with over sixty client databases that currently operate with Firebird 3.0.3.32900 and an application in Delphi that is responsible for synchronizing logs from one end to the other. To exemplify, the application is responsible for...
asked by 03.12.2018 / 15:50