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
-
0
votes2
answers2042
viewsRemove penultimate character from a string
I have an application that by clicking on labels one edit receives his caption as follows: Edit1.Text := Edit1.Text + TLabel(Sender).caption+ ' '; After that I click ok, and this information passes…
-
0
votes0
answers220
viewsExtract JSON data on Android received by Datasnap
I have never worked with datasnap do not know how to extract! Someone can give me a help, I leave the code I have: DSRESTConnection conn = new DSRESTConnection(); conn.setHost("54.207.112.131");…
-
0
votes1
answer106
viewsHow to resolve problems uploading Tidftp to Object-Pascal?
I found a way to upload to my FTP server, but I try to notice that files over 1 KB arrive damaged, so I ask your help to solve my problem, the mode used in question was the image below, how to solve…
-
0
votes2
answers1166
viewsHow to create SQLITE BLOB fields with Delphi
I’m developing an android APP through Delphi. recently I have been trying to create a BLOB field in my SQLITE database when I do ShowMessage(query.FieldByName('imagem').ClassName); (request field…
-
0
votes2
answers1556
viewsQuickreport Save PDF by Default
My reports always have the Tqrpdffilter component, so they can be exported to PDF. However the client is complaining that when clicking save, he still has to select the format you want to save (in…
-
0
votes0
answers420
viewsProblem with Stringreplace in Delphi
I am using Fastmm to solve some problems in my TCC and am encountering this error in Stringreplace function: The allocation number was: 180812 The block was Previously Freed by thread 0xAEC, and the…
delphiasked 8 years, 11 months ago Jórdan Luiz Bisato 21 -
0
votes2
answers720
viewsDelphi - Thread exception handling
I wrote a thread on Delphi with exceptions treatment, but when the exception happens the operation is aborted and does not fall into the except block. Is there any specific treatment of exceptions…
-
0
votes1
answer879
viewshow to use SQL Server Expressions/Functions in a Tfdquery filter in Delphi
I have the following situation, I need to check if the time of a given task is no longer filled in the system and for this by performing an SQL command in SQL Server 2014 works, as in the example…
-
0
votes0
answers159
viewssend HTML email with MAPI
Good morning. Has anyone sent any e-mail where in the body of the text is sent an HTML code. In my case I need to save a table in the body of the text. Using Outlook works, but if using live mail,…
-
0
votes1
answer881
viewsDelete file in Delphi use
Does anyone know if it is possible to delete a file on Delphi, using the function DeleteFile, when the file is open? Thanks in advance.
-
0
votes1
answer643
viewsFilling a Listbox with Paradox(Delphi) Database
Good afternoon, my friends. I’m having trouble filling a listbox with information from a Database table in Paradox, Data Source is the file "Gap03dm.Sourcechaves" and Datafield is "Field". How to…
-
0
votes1
answer58
viewsStringreplace on all occurrences
I’d like to replace all the \ for / on my Edit, but it only works for the first occurrence with the following code: Edit1.text := '"'+ StringReplace(Edit1.text, '\', '/', []) + '"'; How to replace…
delphiasked 8 years, 10 months ago Guilherme Lima 3,129 -
0
votes0
answers99
viewsHow to send only one row of a multidimensional array to a Function?
I need to send only one line of a array multidimensional as a parameter of a Function, without having to transfer this line to another array. for example: calling for: var UmArray : array [0..4,…
-
0
votes1
answer158
viewsCapture the URL through Admob code
I want to record the url of the component BannerAd after Load, I realize that the component becomes url to the device’s default browser. The code is as follows: unit Unit1; interface uses…
-
0
votes1
answer87
viewsHiding Delphi null field mask
I have a Dbtext field with phone information, I formatted the field that way "! 99999-9999;1;_", only when a null field appears, it ends up displaying the hyphen that separates the numbers, it has…
-
0
votes1
answer557
viewsRTTI Free on an object created by Invoke
I’m creating a routine to instantiate a class via RTTI and validate whether this class implements a interface. I have a test class implemented as follows: unit teste.classeTeste.uclasseTeste;…
-
0
votes2
answers1609
viewsHow to Use Displaytext/Displayformat Tstringfield clientdatset Delphi
Hello I want to format the fields of my table that are password, I want to display **** instead of password. I tried using the similar method to format values…
-
0
votes1
answer2972
viewsDelphi: idHTTP.Post HTTP error/1.1 401
I’m trying to access Delphi’s idHTTP on a json server without success. I have tried all alternatives and always have the same error: "HTTP/1.1 401 Unauthorized". Json format submitted for testing:…
-
0
votes1
answer1133
viewsRun routines in background
I have a routine to run when opening my system once a day, I put a panel with a message for the client to see that it is being processed, but is now taking a long time to run. My idea is to put in…
delphiasked 8 years, 8 months ago Thiago Porto 292 -
0
votes2
answers67
viewsError making Checkbox Visible
I am using the following code to make Checkbox visible. CheckBox: Array[1..15] of TcheckBox; procedure TForm1.edt_variavelChange(Sender: TObject); var valor,x,i : integer; if valor = 2 then begin…
-
0
votes1
answer135
viewsFunction does not find text in Tedit
With the code below I’m trying to find a text in a Tedit, procedure TForm2.CheckBox3Click(Sender: TObject); var i: integer; begin existeCampo := false; begin for i := 1 to form1.variavel do begin if…
delphiasked 8 years, 11 months ago Guilherme Lima 3,129 -
0
votes1
answer173
viewsHow to move items between 2 Treeview dynamically?
I have a Treeview that receives as items the fields of a database. I wanted to link these fields to another Treeview that already has a predefined structure. It would be something like the image…
-
0
votes0
answers278
viewsHow to recompile all Views, procedures and triggers in Firebird?
I need to recompile all Views, procedures and triggers in Firebird, not by Ibexpert, but by Delphi XE2, I will pass an SQL, I would like to know how to perform such a procedure.
-
0
votes1
answer543
viewsTwebbrowser does not load google map colors
I have an Asp page that worked normal by Twebbrowser (Delphi-XE7) until this morning, but now carries all the points added, but the Tiles do not. If you move the zoom, press normal from there, but…
-
0
votes1
answer719
viewsOpen network document - Delphi
How do I open in Delphi a document, word or PDF, that is on the network? Locally I can open, but when I use a network path (Ex.: \\Servidor\c\sistema\documento.doc) returns an error message that the…
-
0
votes1
answer1460
viewsAdd a text at a certain position
Hello, I need to add a TEXT at a certain position of a TXT file, if possible using STRING LIST. I have a TXT and inside this TXT has about 300 lines. And in the middle of it has the following line:…
-
0
votes1
answer801
viewscapture JSON object sent via POST in Mormot’s request payload
I’m sent my object JSON via POST using the ExtJS 6.01. my application server was done in morMot in the Delphi Seattle. Sending in mode GET I usually take the parameters that come by url. But sending…
-
0
votes0
answers161
viewsWebbrowser click button or link with no name and DELPHI ID
Hello guys I know that to click this button here input type="Submit" id="btnSubmit" name="advance" value="Advance " onclick="Return onsubmit();"> if using this code…
-
0
votes2
answers397
viewsDoubt to "check" a radiobutton by clicking on an image
I have these 3 images with 3 RadioButtons different, I would like to click on the image of the blank square for example, the respective RadioButton be selected. I used radiobutton3.checked at the…
-
0
votes0
answers1116
viewsDelphi android optimize image loading
I have a question about uploading images to Delphi. My images have an average size of 47kb, when I display them on Listview application comes to practically lock by the time of the reply. The images…
-
0
votes3
answers710
viewsSorting using Dbgrid with Clientdataset
I’m using a Dbgrid along with a Datasource. And I’m willing to do the ordering as the client clicks on the title. I made the following settings: On my Dbgrid on the Datasource property I inked my…
-
0
votes2
answers612
viewsAdd a third-party program to an installer
I’m using the InnoSetup to generate an installer for an application Delphi. But that same application depends on the program R, would like to know if it is possible to connect the installer of the R…
-
0
votes1
answer214
viewsSum occurrences in a Memo
I have the following items in a memo: ns ns basica+textura+Al ns ns ns ns basica+textura+Al basica+textura+Al basica+textura+Al basica+textura+Al ns ns ns I wish he’d add up how many times ns…
-
0
votes1
answer303
viewsHow to format a string with 3 houses?
I have a code that concatenates the results typed in edits, I am assigning a 0 for each reading for the values stay like this: Result: 030/060/090/ More when I have a value that already has 3…
-
0
votes0
answers82
viewsMove process to another desktop
Imagine a scenario where I have the desktop pattern of windows, and I create another desktop, then need to move my application to the second. I currently create this application in the other, but am…
-
0
votes1
answer534
viewsMouse scroll button on a Quick report
How to make the mouse scroll button work in Quick Report reports. Today I use a custom Preview using the Tqrpreview component. I use Delphi 7 and Quick Report 3.0.9.
-
0
votes1
answer74
viewsFailed to create field in Simpledataset in Delphi
I have a Simpledataset that already had records from a database. I added a field to work in memory. When I right click does not appear the Create Dataset option and when I copy the project error:…
delphiasked 8 years, 6 months ago fabricio_wm 1,090 -
0
votes3
answers974
viewsService done in Delphi "kill yourself" or give Stop
I would like to know which command to use for a Windows service "kill yourself". Because it’s a service I don’t have the option Application.Terminate. I need to check a certain date, and if it’s…
delphiasked 8 years, 6 months ago Rodrigo Tognin 1,057 -
0
votes0
answers91
viewsHow to add Iduri in Delphi 2010
I’m developing a project that I need to idURI that is from Indy and Delphi 2010 doesn’t have. I need this to take a code and concatenate with the current date and send via url with that code at the…
-
0
votes1
answer767
viewsProblem with FOR loop interaction using Tstringlist
I have a TStringList which stores absolute path names of some files and I want to put these names in a text file only if the current verified name does not yet exist within text file. When…
-
0
votes1
answer276
viewsCopy database file in use in Delphi
I use the Absolute Data Base database. It is an embedded database with multiple network connection feature. I am making a backup system to copy the . abs file generated by the bank. The problem is…
-
0
votes0
answers97
viewsEncryptar/Decryptar strings with Delphi
For knowledge purposes, I would like to create my own not very complex function to encrypt and decrypt program strings. I got this piece of code from the Internet s1[1] := Char((Byte(s1[1]) shl 4)…
-
0
votes1
answer410
viewsCreating Report Inside a Panel
I need to display a report in a determined system area( in the right half) already in the left half want to put other components( as mode buttons and display and other options for printing) How…
-
0
votes2
answers816
viewsRotate Canvas in Delphi
I need to rotate an object inside a canvas at Delphi. Example rotate by 90 degrees. Text I get is easy, but I have to be able to do for any type drawn object. As for an image drawn on canvas or a…
-
0
votes0
answers23
viewsCrop in image
I have a TForm, and in this form a component TImage with some kind of image. What I want is to select a part with the mouse of this image, and then a function that makes a "hole" in the image and…
-
0
votes2
answers64
viewsCheck smartphone horizontally
How to check in a given situation if the smartphone is horizontal?
-
0
votes1
answer515
viewsSending an email to Delphi
I am using the following code snippet for sending email in Delphi, but when trying to send an attachment, the attachment becomes part of the body of the email. What could be wrong? function…
-
0
votes1
answer160
viewsAndroid Emulator with Internet
I configured the emulator of Android, but has no Internet connection, as I configure or have no way?
-
0
votes2
answers2283
viewsRun Javascript on Webbrowser with Delphi
I created a robot in Delphi to open a website and include the data automatically. I’m having trouble calling a Javascript routine that has on this site, as below: <script…
-
0
votes1
answer105
viewsIs it feasible to place an Idhttpserver in a Mobile App to receive instant messages from a remote server?
I intend to make an application that receives notifications without consulting the server at all times, and that is able to run in the background on Android. I will use the Firemoney platform, which…