Questions tagged as 'delphi-xe8'

1
answer

Delphi Error or Bug in Procedure Creation

In the creation of the Automatic Procedure, double click on the component, Delphi XE8 and delphi-10 is having a strange reaction it mixes the new Procedure with one of the existing Procedure, causing their names to be wrong and I have to correct...
asked by 14.11.2015 / 01:00
1
answer

How to insert / retrieve image in MySQL database

Would you like to know in a clear and simple way how to insert / retrieve an image in the MySQL database? I'm using FireDac to connect to the MySQL database. I have a JPEG image and want to save it to a MySQL database and be able to restor...
asked by 17.01.2016 / 16:05
1
answer

Show hint only when the application starts for the first time

I have a desktop application that is a bit complicated, so I thought about helping the user to generate images (Hints) to help with the path. But I know how annoying this is, so I wonder if this is only possible when the application is first...
asked by 05.02.2016 / 19:12
1
answer

Delphi XE8 and Firemonkey: Integration between webbrowser javascript and system

I'm using the TWebBrowser component of Delphi to create a system that interacts with the site. So far so good! I can execute the javascripts of the site correctly, the problem is when I need to get a response from the javascript function...
asked by 27.05.2015 / 16:32
1
answer

How to improve the performance of a key search?

Given that TDictionary exposes only ways to retrieve value through the key, I have the following algorithm to fetch a key from its value: var Table: TDictionary<Int64, Extended>; function KeyOf(Value: Extended): Int64; inline...
asked by 25.06.2016 / 02:32
0
answers

Divergence between Delphi versions - DataSnap

SQLServer database proc receives a single parameter that is the enrollment of the face and returns the balance. SQL Command: SELECT SUM(CASE Fl_Credito WHEN 1 THEN Vl_Movimento ELSE 0 END) - SUM(CASE Fl_Credito WHEN 0 TH...
asked by 20.12.2016 / 21:21
1
answer

Delphi - Make a Thread that plays a song in loop

I managed to make a Thread that plays the song, but only for 1 time.  If I put a loop in it I have several errors, like the 1400. It seems that the thread does not close when Form1 is closed, because the problem always happens when I try to c...
asked by 02.11.2015 / 19:48
3
answers

Loop to make edits invisible

I have the following way, to make edits invisible. edt_raster5.visible := false; edt_raster6.visible := false; edt_raster7.visible := false; edt_raster8.visible := false; edt_raster9.visible := false; Is there a way to use a loop to make it...
asked by 29.01.2016 / 14:17
2
answers

How to use ternary IF

What would be the following situation using if ternary ? if StrToInt(Edit1.Text) < 30 then Edit2.Text := '30' else if StrToInt(Edit1.Text) in [30..50] then Edit2.Text := '40' else Edit2.Text := '50'     
asked by 29.04.2016 / 13:42
2
answers

Error closing executable

I have an application that has 4 forms. After the process there is a button for the person to start again. procedure TForm4.Button3Click(Sender: TObject); begin FreeAndNil(Form1); FreeAndNil(Form2); FreeAndNil(Form3);...
asked by 27.01.2016 / 13:49