Most voted "delphi" questions
Delphi is a language for the rapid development of native applications for Windows, OS X, iOS and Android applications. The name refers to both the Delphi language (a modern evolution of Object Pascal) and its IDE, which is used to help edit and debug Delphi projects.
Learn more…1,390 questions
Sort by count of
-
2
votes0
answers30
viewsRemove Packet Tclientdataset
Hello. I have a Tclientdataset, and in it I define the parameter FetchOnDemand := False and PacketRecords := 10; At the event AfterScroll calling GetNextPacket, and in this way I have data demand…
-
2
votes2
answers580
viewsExtract Metadata from Firebird via Delphi
First I researched a lot on the subject and found practically nothing, only the direct extraction by Ibexpert that is not what I need. I wonder if there is a way to extract the metadata from my…
delphiasked 6 years ago user129333 130 -
2
votes1
answer153
viewsDelphi 10.1, Function that only accepts an integer interval in the variable
It sounds easy, but I’m not getting it. I want to be able to define a type of variable when creating a Function or Procedure, but only accepting integers between 1 and 4 for example during the…
-
2
votes1
answer63
viewsHow to assemble a set of different data types into a named structure in python?
Good afternoon, I had a question about how to gather a set of different types of data in a structure named in Python. I’m in the process of migrating from Delphi to the Python language. But I want…
-
2
votes1
answer48
viewsProblems with data registration with Combobox listing and function
I’m having great difficulties with the combobox and the use of Function in Delphi I apologize, I am beginner in the world of programming and can not identar the code here, I will leave the code in…
-
2
votes0
answers165
viewsHow to capture multiple fields returned from a Select using Stored Procedure with informed parameters and put inside variables using Sqlserver?
-- A data set will be returned after reporting 2 parameters, I need to take this data set and put in variables. @Clientetypoveiculo VARCHAR(5), @cdVeiculo int as if (@ClienteTipoVeiculo='Moto')…
delphiasked 6 years, 4 months ago Cláudio Américo 21 -
2
votes1
answer150
viewsDoes using or not block definition in simple "if" influence application performance?
Between one line and another there are some doubts that do not change the flow of decisions at all, but perhaps can influence the performance of the application by the amount of extra lines…
-
2
votes1
answer762
viewsFailed to connect database: Connection Lost to database - Firebird and Delphi application
I have a server with more than sixty client databases that currently operate with Firebird 3.0.3.32900 and an application in Delphi that is responsible for synchronizing logs from end to end. For…
-
2
votes1
answer223
viewsHow do I change the path of my database when running the program?
I’m starting to program with the Delphi XE8 and using Firebird 2.5. I managed to implement my database and it’s working all right. The problem I’m facing now is that as I change from computers to…
-
2
votes2
answers1154
viewsWhat type of variable allocates less memory, integer or string?
Imagining the situation I’m taking from the database a field number, which represents the client’s code. This value tends to be between 1 to 50000. I must for this case save as string or how integer…
-
2
votes1
answer458
viewsHow to get id values at the click of the button (html) in Tchromium Cef4delphi?
I have an html form and this opens inside a Delphi form with the TChromium. How can I get the values of the fields the user entered? <div class="col-2 md-4 mb-3 offset-md-0 col-md-4">…
-
2
votes3
answers623
viewsWait Thread Finish to continue code - Delphi
I need to wait for select and fill the list to finish in Thread for Function Result to receive the list loaded in the asynchronous method, is it possible? Follow the code of Function: function…
-
2
votes0
answers164
viewsHow to transfer a file(db) from Android to PC using Delphi(Firemonkey)
I am using Delphi Tokyo 10.2.3 for Android programming, Firemonkey deputy (FMX), I need to create a code that is possible inside the App on android can transfer a file in case the Database to the PC…
-
2
votes1
answer70
viewsDUVIDA - Replacing texts with Javascript
Well, I’m setting up a chat system in Delphi in which I use the Chromium component to load an HTML that I use as the chat history due to lack of visual components in it. Anyway, in the messages…
-
2
votes1
answer876
viewsCapture values of an input in Delphi (Tchromium)
Good morning, I’m using HTML, CSS and Javascript to set up a chat layout for a messaging system I’m developing. Until then, everything ok, only due to a limitation problem I found in Twebbrowser, I…
-
2
votes0
answers63
viewsCtrl key presses while moving remote access window
Good afternoon. I have the following problem: I have an application where the Ctrl key activates an application event, and some users use RDP(remote access) to use this application, the problem is…
-
2
votes0
answers37
viewsTmemo.Caretpos how it works and how to use this command?
I am wanting to position the text cursor in a certain position, in a normal situation would just click on the position only that I do not know what happened is not working. Reading the command on…
-
2
votes0
answers28
viewsReturn field calculated by Firebird Generator (Firedac)
I have Tfdquerys created at runtime for the purpose of entering records into my database. Table: CREATE TABLE TABLETESTE ( ID INTEGER ); SET TERM ^ ; /* Trigger: TABLETESTE_BI */ CREATE OR ALTER…
-
2
votes2
answers38
viewsHow to stretch a form only the width?
I wanted to know how to stretch a form only right or left by preventing it from stretching down and up. I checked the website http://docwiki.embarcadero.com/ who the forms have this property but…
-
1
votes1
answer693
viewsHow to generate Tremotable Class with XML Bind?
I need to generate the Tremotable classes of a SOAP Webservice based on an XML. I tried Delphi XE XML Bind but it generates interface with uses xmldom, Xmldoc, Xmlint.
-
1
votes2
answers1492
viewsOpen Outlook by clicking an email on the Tdbgrid component in Delphi
I am making a utility where will have the employee name, your extension and your email. I would like when clicking on the email to already open Outlook. As this would be possible?
-
1
votes1
answer809
viewsIs there a way to generate release releases in the old Delphis directly from the IDE?
In the latest versions of Delphi we can easily generate a version of the executable for distribution by simply running the compilation by the option Release. This removes several useful points for…
-
1
votes3
answers3236
viewsMouse Click without Moving Screen Cursor
I’m making a simple system, in this FORM has 2 button, one that performs the function and another that I put a SHOWMESSAGE('teste ok'); and I took the POSITION of this second BUTTON, remembering…
-
1
votes1
answer754
viewsHow to search for element in Listbox?
I need to search for words partially inside a Listbox, example: one of the elements of Listbox has the floor Dog, if I type cach (in an Edit for example) it searches and selects all words that start…
-
1
votes1
answer308
viewsAbout the Tadcommand and Tadtableadapter components, what are they, what are they for?
In the components suite purchased by Embarcadero for the Delphi, the FireDAC, there are two components I would like to know about them. Are they the TADCommand and TADTableAdapter. What are, what…
-
1
votes2
answers142
viewsDate Killing in TXT to compare with Database Date
Follows the code: dtcompra := copy(lTemp,65,2)+'-'+copy(lTemp,63,2)+'-'+copy(lTemp,58,4); if DModuleGrid.ZQuery1.ParamByName('dtcompra').AsDateTime = StrToDateTime(dtcompra) then begin //codigo end;…
delphiasked 10 years, 6 months ago Ramon Ruan 1,018 -
1
votes2
answers369
viewsCompare txt data with database data
Follows the code: procedure TfrmGrid.btnLoadClick(Sender: TObject); var txt: TextFile; l,treg,treg2, coo, ccf: integer; valortxt, valorbd : double; lTemp, valor, dtcompratxt: String; dtcompra:…
delphiasked 10 years, 6 months ago Ramon Ruan 1,018 -
1
votes1
answer785
viewsOptimize database query and compress code
Follows the code: procedure TfrmGrid.btnLoadClick(Sender: TObject); var txt: TextFile; treg, lreg: integer; valortxt, valorbd : double; dt1, dt2,lTemp, valor, dtcompratxt: String; dtcompra:…
delphiasked 10 years, 6 months ago Ramon Ruan 1,018 -
1
votes1
answer815
viewsCheck uploaded image
There is the possibility to check when an image was loaded into a TImage? For example: I have a label that appears "Loading Image..." when the TImage load any image, this label should disappear. It…
-
1
votes1
answer1427
viewsMaster Detail Fast Reports
I have a report in Fast Report of notes and duplicates / boletos. On date I have 2 DbxQuery, note and boletos. In the boletos I put the master as notes, and used as a filter in the boletos the…
-
1
votes1
answer7056
viewsSelect Dbgrid Line and Stringgrid recognize the line NUMBER
Would you know to tell me if there’s a possibility when I select a line from the DBGrid, my StringGrid just recognize which line I selected? I’m not doing functions: I’m just doing this kind of…
delphiasked 10 years, 6 months ago Ramon Ruan 1,018 -
1
votes1
answer82
viewsCheck the tables that appear on my first Dbgrid
Follows the code: var i : integer; begin i := 0; DataModule1.ZConnection1.Database := edtDB.Text; DataModule1.ZConnection1.HostName := edtLocal.Text; DataModule1.ZConnection1.User := 'root';…
-
1
votes1
answer1901
viewsShellrun using CMD to open mysql
Gentlemen, I’d like to ask you if you can use the command cmd to run mysql.exe on it, let me use a line of code: ShellExecute(Handle,'open',PChar('cmd.exe'),PWideChar('/k cd\mysql\bin &…
-
1
votes2
answers2239
viewsVariable result with IDHTTP
need to get the result of a link and put in a memo. I will explain better in examples: I’ll access the link: http://www.xxx.com.br/teste.php?Teste (this address will return me the word OK. It is…
-
1
votes1
answer1081
viewsDoubts creation, manipulation and elimination of form
I have the following doubts: When creating a form, according to the code below, I need to destroy it somehow when it is finished by the user? F_pesqcli := Tf_pesqcli.Create(self);…
-
1
votes1
answer501
viewsHow to create an event, when mouse reaches a certain area of the application
I am developing an application in Delphi xe5 and would like to make a menu open to the mouse "enter" in an area of my form. It’s kind of complicated to explain, but I’ll try to ... The windows…
-
1
votes2
answers1043
viewsProgress Bar locks application
I’m trying to raise a progressbar within my repeating structure, however the progressbar always locks the application. I will demonstrate here, follows the code: It would be correct to try to use…
delphiasked 10 years, 6 months ago Ramon Ruan 1,018 -
1
votes1
answer78
viewsAccess Violation in Code
Gentlemen, I have this code, it lies in my Form Activate, then, it serves to identify my running software, and consequently update it, ie it is an auto updater. if servidor = false then //se o…
delphiasked 10 years, 4 months ago Ramon Ruan 1,018 -
1
votes1
answer633
viewsWorking with Autosize Form
I’ve got a hot guy with the property Autosize = True, and two Groupbox One in the middle and one in the bottom. There is a function that makes the bottom Groupbox invisible if it is visible and vice…
-
1
votes1
answer1122
viewsDelphi Consuming Processing
my Delphi XE3 is consuming an absurdity of processing, when I type a command as soon as I finish it starts processing, as if it was going to open the auto-complete screen but it takes too long, the…
-
1
votes1
answer220
viewsInsert data from a TXT into a DB
Even making all these conditions, my database is responding in a strange way, because literally what I am selecting, is in every line of my file .txt, returns everything, including empty spaces,…
-
1
votes1
answer536
viewsDelphi shortcut to move code block
In eclipse there is a shortcut that greatly increases my productivity: In the code editor, to move to lines above or below a code block is used by default ALT+ Key DOWN/UP. At Delphi, I’ve looked at…
-
1
votes2
answers1380
viewsAccess Violation When Selecting XML File - Nfe
I’m trying to select the nós, but is making an error of Access Violation, what I could improve on this code so there is no error? procedure TfrmDataB.sbtnAbrirClick(Sender: TObject); var xmlNCab,…
-
1
votes1
answer226
viewsExtend Tclientsocket Delphi class
I would like to know how to extend the Tclientsocket class in Delphi, to put new features without losing the old ones, with examples. Hug.
-
1
votes1
answer34
viewsError assigning Caption with Inc
I have a LISTVIEW component, in it are inserted several records. I need to generate Auto Increment code in the Caption of this listview according to the number of inserted records. I tried something…
-
1
votes1
answer1048
viewsAdd LISTVIEW column
I have a listview component in my project, and it contains a Column with several values inserted. Does anyone have any idea how I can add an entire column of listview that only contains values like:…
-
1
votes1
answer1370
viewsRecover XML Txmldocument at runtime (Delphi XE3)
I am trying to recover the XML data but I can’t , Txmldocument is being created dynamically and is probably missing some configuration, because when I am using it visually in the project I can…
-
1
votes1
answer243
viewsStringreplace x Array
I have the following code: Nomes: array[1..10] of string=('Tadeu','Joao','Maria','Ana','Juca','leticia'); StringReplace(Edit1.Text, Nomes, 'Bloqueado', [rfReplaceAll]); I need to make Stringreplace…
-
1
votes2
answers211
viewsFilter a file
See if anyone can save me, I have a program where every day a TXT is generated as follows: (16BA=1cc)(83=cliente1@plantao)(80=0)(82=1)(1691=610)(1690(89=cliente@frigorifico)(8A I need to create…
-
1
votes1
answer51
viewsWhich version of Radstudio stunned the Twebbrowser library?
What version of Radstudio updated the Twebbrowser library making it compatible with new versions of Internet Explorer?