Questions tagged as 'delphi'

2
answers

Active = False before starting a Delphi application

Whenever we work on Datamodule on the connection component, we enable it to do tests and the like. It turns out that if we forget to deactivate when compiled, it can give an error when we send to the client due to IP or user and password...
asked by 07.01.2016 / 15:59
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
2
answers

How to display data in a dbgrid

I'm using SQLConnection, SQLDataSet, ClientDataSet, DataSetProvider, ClientDataSet and DataSource . I need to display the data in dbgrid , but I'm not sure how to do this. No FormCreate should I open the connectio...
asked by 01.07.2016 / 14:09
2
answers

Error assigning dynamic values to the UniDAC TUniConnection component

Using the UniDAC components for Delphi XE5, I encountered an error in assigning dynamic values to the TUniConnection component, responsible for connecting to the database. The error message appears after the line Connected: = True; dm = Da...
asked by 20.08.2014 / 19:19
1
answer

Delphi Convert from Decimal to Hours

I have the following decimal 0,0159722222222222 want to turn into hours in the following format 00:23:00 .     
asked by 03.10.2016 / 22:18
2
answers

Delete a row in the DBGrid without deleting in the Database

Would you like to delete one or more rows from a particular DBGrid without deleting the database record? I was trying something like this but it did not work out. while not DataModuleGeral2.qryAudienciasInicial.Eof do begin if (DM.qryAu...
asked by 03.05.2018 / 21:40
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
1
answer

Explode in Delphi [duplicate]

I have a txt file where the data is saved as follows:    00: 46: 30 @ 21/08/2014 @ Carlos dos Santos @ São Paulo In PHP I would use explode to transform each data before the "@" into columns. How do I do this in delphi? I need...
asked by 29.08.2014 / 16:42
1
answer

Error DirectShow9 Delphi 7

Good afternoon! I have an error compiling my project in Delhphi 7, when compiling it it gives me the following Fatal error [Fatal Error] AUTOINSTALADOR.dpr (6): Unit DirectShow9 was compiled with a different version of DirectDraw.IDirectDraw...
asked by 27.04.2018 / 19:22