Questions tagged as 'delphi'

1
answer

Optimize query in database and compress code

Follow the code: procedure TfrmGrid.btnLoadClick(Sender: TObject); var txt: TextFile; treg, lreg: integer; valortxt, valorbd : double; dt1, dt2,lTemp, valor, dtcompratxt: String; dtcompra: TDateTime; begin lreg:= 1; treg:= 0; StatusBar1....
asked by 13.05.2014 / 21:42
1
answer

About the TADCommand and TADTableAdapter components, what are they, what are they for?

In the component suite purchased by Embarcadero for Delphi , FireDAC , there are two components you would like to know about them. They are the TADCommand and TADTableAdapter . What are they, what are these components...
asked by 10.05.2014 / 02:21
1
answer

WebRequest error C #

I'm doing a POST type request for a URL, but I always get the following error message: "The underlying connection was closed: Unexpected error in a send.". This request is made through a dll that creates in C #, which is used by Delphi. Wh...
asked by 20.12.2018 / 12:57
1
answer

save in the txt file the result of the sql query in firebird using Delphi

I need to save the result of a query inside the txt file by separating by a delimiter, I am extremely new to delphi and firebird, so any help is welcome code below: procedure TForm1.btPesquisarClick(Sender: TObject); var arquivo: TextFile;...
asked by 13.12.2018 / 15:15
1
answer

How to search for element in ListBox?

I need to look up words partially within a Listbox , eg one of the elements of Listbox has the word Dog , if I type cach (in an edit for example) it searches and selects all words that start with these letters.     
asked by 25.04.2014 / 00:16
1
answer

Calling C # dll function (VS2010) using COM in Delphi 5 does not pass the parameters correctly

Good morning, I created using UnmanagedExports a dll in C # (Visual Studio 2010) to be consumed in a form delphi 5, as follows: C #: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; usin...
asked by 31.10.2018 / 14:12
2
answers

DLL distribution

I created a COM DLL in C # VS2010 to be distributed with another application in Delphi. This DLL only consumes in WEB Services. On the machine where the DLL was built, there is no error. But in the distribution when the DLL methods are exec...
asked by 20.02.2014 / 15:02
1
answer

Telling the Printer to Report Builder

I use ReportBuilder in my applications and would like to know how to tell which printer it will use to print before displaying the report.     
asked by 16.12.2014 / 17:42
3
answers

Form always visible

Well, I came here because I do not know what to do anymore, I tried everything ... I need to leave my FORM2 always visible (above) of all open programs on windows. My program did the following: Form1 has a BUTTON when I click on it it execute...
asked by 21.07.2014 / 04:20
1
answer

How to generate TRemotable Class with XML Bind?

I need to generate the TRemotable classes of a WebService SOAP based on an XML. I tried the Delphi XE XML Bind but it generates interface with uses uses xmldom, XMLDoc, XMLInt.     
asked by 31.01.2014 / 12:43