Questions tagged as 'delphi'

1
answer

Floating Point Error

Here is the code for the total price that is giving the floating-point error ': //Pr. Total sgItens.Cells[5,l] := FormatFloat('###,###,###,##0.00',StrToFloat(copy(lTemp, 210, 14))); cont:= StrToFloat(sgItens.Cells[5,l]); valorTotal:= valorT...
asked by 08.05.2014 / 19:51
1
answer

Fill a listview with the properties of a class in delphi

I'm doing an MVC application in delphi, it was going okay, when it came to the part of listing the information in a listview, I came across a little problem, as the application is layered, I looped the repeat layer controller, and I was retrievi...
asked by 24.10.2016 / 20:22
1
answer

Make Responsive Image in Delphi

I'm in a project and need to put a background image, I would like to make that image responsive, but I can not. I'm using Timage to insert the image.     
asked by 21.09.2017 / 18:05
1
answer

idHTTP Post response html cut

Good. I'm doing a Post via idHTTP where the result comes in StringStream . The problem that this result is coming in half. In case, hacking the html response. Is there a way to buffer this Post? Note: I use DelphiXE7. var...
asked by 04.10.2016 / 19:08
1
answer

How to add subitems of a ListView in a Memo?

I have a ListView with 5 fields. I need to get the field number 5 from the ListView and add it to a Memo. I tried the following: Memo1.Lines.Add(LV1.Selected.SubItems[5]); Unfortunately it did not work out. He does not make any mistakes,...
asked by 17.04.2014 / 15:29
1
answer

Associate a file with an application made in Lazarus under Linux

I developed an application in Lazarus on the linux platform for report printing, now I need to click on the file with any extension, ex arquivo.gsa , open my lazarus application in linux. On windows, it was not so complicated I used this c...
asked by 21.04.2014 / 20:10
1
answer

Problem with the sum of 10 numbers with for

I have a question in an algorithm that adds 10 numbers with the for repeat command. soma_numero := soma_numero + idade; When I declare soma_numero as 0 before for the algorithm runs normally, but its I do not declare 0...
asked by 17.06.2018 / 19:59
1
answer

How do I download Delphi through FTP servers with authentication?

I have some files on an FTP server on Hostinger, and these files have been left there since links from FTP servers never change. As they are very important to make updates to my application, Delphi should download them.     
asked by 23.08.2015 / 21:08
1
answer

How 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 a fade in the image. Well, the important thing is that I do this fade in a certain time in milliseconds, so I did the routine...
asked by 19.02.2014 / 17:58
1
answer

Hyperlink in a DBGrid field

I'm doing a little internal software to search extensions in my company. In addition to the extensions I also put an email field in the database as can be seen below: My intention is to click on the registered e-mail, the software through...
asked by 13.03.2014 / 20:44