Questions tagged as 'delphi'

1
answer

Delete file in use Delphi

Does anyone know if it is possible to delete a file in Delphi , using the DeleteFile function, when the file is open? Thank you in advance.     
asked by 10.03.2016 / 17:58
1
answer

PDFSplitMerge class not registered in Delphi XE

I have a system that uses Unit PDFSplitMerge_TLB , it compiles into a good one, but when executing and trying to use the TCPDFSplitMergeObj Object it says the class is not registered Usage example: procedure TForm1.BitBtn1Click(Sender:...
asked by 08.01.2018 / 18:36
2
answers

Run a JavaScript in Webbrowser with Delphi

I created a robot in Delphi to open a website and automatically include the data. I'm having trouble calling a JavaScript routine that has this site, as below: <script type="text/javascript"> function prepararInclusaoItem(id) { my...
asked by 16.08.2016 / 15:19
2
answers

Error in insert with ADOCommand

In Delphi XE4, SQL Server 12, connected by ADOConnect . ADOCommand1.commandText being 'insert into tabela (a,b,c) (1,1,1)' Works as expected if a record already exists. But if it is the first record the message appears:...
asked by 04.05.2014 / 14:03
1
answer

Fields losing the DataSource property

I'm having a small project of some files here, using Delphi XE8. sometimes when I change something in the project, all fields (edit's and dbGrids) lose the "DataSource" property and I have to link again before compiling. I've searched the int...
asked by 17.07.2016 / 04:00
2
answers

With delphi, how can I disable the ESC key for all applications?

I need to disable esc for all programs using Delphi. Probably form has to be always active and I disable the key in a way similar to the example below. My code so far: procedure TForm2.FormKeyDown(Sender: TObject; var Key:...
asked by 10.05.2014 / 19:52
5
answers

Query pass parameter null

Can I pass the value is null or is not null through a Query? Example in SQL: select * from tb_teste where tb_teste.data_hora :PARAMETRO; In Delphi: Query.ParamByName('PARAMETRO').value = 'is not null'; or Query.ParamByN...
asked by 16.10.2018 / 21:06
3
answers

How to read only the FormatDataTime numbers

I needed to know the current time of the computer and compare it with values in the database, for example: 'agenda.hora >= "' + formatdatatime('hh:ss',now) + "; It turns out that both the bank and the format will return a string, the ban...
asked by 28.09.2017 / 15:11
1
answer

delphi WebBrowser

Is there any way to improve Delphi's WebBrowser ? In the current format it does not support more sophisticated pages like the Pje tjmg public query.     
asked by 26.06.2018 / 20:02
1
answer

I can not write data to a txt file

Code: qr.ParamByName('mes').AsString:= edmes.Text; qr.ParamByName('ano').AsString:= edano.Text; qr.Active:= true; qr.First; try AssignFile(arq, 'relatorio.txt'); Rewrite(arq); showmessage(inttostr(qr.RecordCount)); while not qr.Eof d...
asked by 20.08.2018 / 14:35