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
-
4
votes1
answer80
viewsShowmessage presents the message 2 times
I have the following code below: for i := 1 to form1.variavel do with form1 do if TEdit(FindComponent('edt_variavel'+IntToStr(i))).Text = '' then begin showmessage ('Preencha os campos em branco')…
delphiasked 8 years, 11 months ago Guilherme Lima 3,129 -
4
votes1
answer961
viewsPost Idhttp FIREMONKEY Delphi XE7
Following previous question: Previous question on the same subject. Now what he’s showing is: http/1.1 404 Not Found. Code used: Functional in VCL: function TForm1.UploadArquivo(server, script,…
-
4
votes3
answers4648
viewsAndroid Delphi-10 build error on Windows 10
I’m having a problem to compile for android on Delphi-10, follow the error [Exec Error] The command "PATH C: Program Files Java jdk1.7.0_79 bin;C: Users Public Documents Embarcadero Studio.0 Bpl;C:…
-
4
votes1
answer1321
viewsHow to embed exe in Project Delphi?
Setting: I have a system developed in Delphi 5 and another in Delphi EX8. In Delphi 5 I call the EX8 executable, so far so good, because it would only be an extra program for the user to download…
delphiasked 8 years, 10 months ago Gabriel Rodrigues 15,969 -
4
votes2
answers364
viewsHow to block a website with Delphi, vbs or msdos?
I have a user control and monitoring system and would like to block a site using Delphi or even MSDOS or vbs commands, or even using Sockets(I don’t know if it’s possible)? What I have so far is…
-
4
votes2
answers3931
viewsCreate dll in C# and use in Delphi 7
I need to create a dll in C# so I can use it in Delphi. I tried the following: I created a basic dll with a sum method, but when calling it in Delphi does not return anything, it would be like the…
-
4
votes1
answer597
viewsidHTTP Post Response html hacked
Buenas. I’m doing a Post via idHTTP where the result comes in a StringStream. The problem that this result is coming in half. In case, by cutting the response html. There Is A Way To Buffer This…
-
4
votes1
answer763
viewsHow to return the converted image to Base64 in Postman
I have a Web Service REST Server, need to traffic a web service image to the client, when the client requests a particular image, the web service does the conversion to base64 and send it to the…
-
4
votes1
answer618
viewsFill a listview with the properties of a class in Delphi
I’m doing an MVC application in Delphi, it was going well, when you arrived at the part of listing the information in a listview, I came across a small problem, as the application is divided into…
delphiasked 8 years ago Alex De Sousa 43 -
4
votes1
answer3038
viewsHow to change the form buttons (minimize, maximize and close)
I have a project in Delphi 2010 where you would like to change the buttons icons Minimize, Maximize, Close-up that are represented in the image below: The icons I want to use were created by me, so…
-
4
votes3
answers1918
viewsHow to change the line color of a Dbgrid in Delphi?
I’m doing a expense control system, and when registering a new revenue or new expense I want you to change the line color of that record on dbGrid as chosen, I used a TDBRadioGroup to choose between…
-
4
votes1
answer2976
viewsHow to get request header by passing Authorization Bearer using Datasnap
I’m using Delphi XE7, have a WebService REST made from the DataSnap REST, I need to get the bearer-token past Header by the customer, only that the DataSnap REST by default it executes as Basic.…
-
4
votes2
answers205
viewsAlert p/o programmer when opening Form (Designer)
When a programmer opens a specific form, I would like to send a notification (ShowMessage()) even for it to pay attention, for example, to the comments that are in the file header .pas in question.…
-
4
votes2
answers1376
viewsDelphi Berlin slow after migrating from a Delphi Seattle project
I migrated a project made in Delphi Seattle to Delphi Berlin and it became impossible to work on it because the autocomplete started to take about 20 seconds to show some suggestion. How to solve…
-
4
votes1
answer408
viewsSend email by calling Outlook 2013
To send emails use the function Sendemail: function SendEMail(Handle: THandle; Mail: TStrings): Cardinal; type TAttachAccessArray = array [0..0] of TMapiFileDesc; PAttachAccessArray =…
-
4
votes1
answer1327
viewsHelp JSON Delphi
Good afternoon! Could you help me read this JSON file in Delphi. I have tried several classes, including the native Delphi and I was able to read only the data of the first node, as status. I use…
-
4
votes1
answer844
viewsFunction of Delphi works on windows but not on android
I have two functions in my project, one for Cpf validation and another to remove different characters from numbers from the string; ok, when I run for windows it works perfectly. Already when I…
-
4
votes2
answers10681
viewsGrabbing all the Values of a JSON Object
I wonder how to get all the values of a part of the JSON: { "Message": "The request is invalid.", "ModelState": { "produto.pro_descricao": ["Informe a descrição do Produto."], "produto.pro_grupo":…
-
4
votes2
answers1858
viewsFiredac multithread (Simultaneous connections - REST server) DELPHI
Good morning Personal, I’d like to request some help from you, in case anyone can help I’m super grateful. Doubt would be reasonably simple, how to work with Multi Thread in Firedac? In other…
-
4
votes2
answers787
viewsHow do I check if there is a directory, if there is a request to report a new directory? I am using innosetup to create an installer
I need to check the folder C: SISAUTO, C: BASESISAUTO. If folders exist, create a new one for example C: SISAUTO2, C: BASESISAUTO2 Follows code. ; Script generated by the Inno Setup Script Wizard. ;…
-
4
votes1
answer360
viewsHow to check if the application shortcut exists on the Desktop, if there is no create
I am using Delphi XE7, wanted to know how to check if my application already contains a shortcut on the Desktop, if in case there is no create a shortcut. From what I researched, I would have to…
delphiasked 7 years, 7 months ago Jefferson Rudolf 1,139 -
4
votes1
answer128
viewsExample Delphi scrollform is not working in version 10.2
I have an App (Android) developed in the version Delphi 10.1, where I used the examples of Scrollform (so that the layout moves together with the android virtual keyboard not to cover the edits),…
-
4
votes1
answer1028
viewsDelphi - Datasnap - Rest - Tservermethods1
I’m running some Datasnap tests with REST and json. Back at the Unit ServerMethods, that Delphi itself creates, has the function ReverseString, but well, how do I know who sent it? I’d like to keep…
-
4
votes1
answer853
viewsHow to find the function name of a DLL?
I’ve used the DLL Export, Dependency Walker, dumpbin, PE Explorer and the result for several Dlls I need to use is always the same with two functions: CLRRP and GETRP.... parameter-less. I know the…
-
4
votes2
answers757
viewsAccess the child components of a Tobject
Ohayou Developers, I’d like to know how you access the children of an object, for example. I have a Trectangle and a Tlabel with your child. I would need to access Tlabel to change, for example,…
-
4
votes2
answers142
viewsDelphi does not write to txt file
The code below creates the txt file but does not write to it. Which may be? procedure TForm1.Button4Click(Sender: TObject); var arq: TextFile; begin qr.Active:= true; qr.First; try AssignFile(arq,…
delphiasked 7 years ago Italo Rodrigo 4,344 -
4
votes1
answer2281
viewsRegex no Delphi
A help with regular expressions in Delphi 10 please. I need to check the following on a string: Size ranging from a minimum of 6 characters to a maximum of 20 characters; Character type: a-z or A-Z…
-
4
votes1
answer739
viewsReturning week number of the month
In January this year (2018) I have 5 weeks in the same, being them: 1 week: 1 to 7; 2 week: 8 to 14; 3 week: 15 to 21; 4 week: 22 to 28 and 5 week: 29 to 31 (or 29 to 04 February). When using the…
-
4
votes1
answer802
viewsSearch for words MEMO!
I have a MEMO COMPONENT and within it there are several sentences on each line. I need to search for words of this MEMO, example: "POLKA". So far so good. The problem is, after he finds the word, I…
-
4
votes1
answer1556
viewsDifference between Transaction.Commit and Transaction.Commitretaining
Using Firedac technology, I want to know exactly the difference between Commit and CommitRetaining. I read in the official documentation of Firedac that Commitretaining keeps the transaction open.…
-
4
votes1
answer799
viewsRead JSON with Delphi 6
I have a JSON file, but I would like to read it using Delphi 6. It would be possible? Follow an example from JSON { "size":1, "response":[ { "id_cliente":21, "nome":"DESENTUPIDORA ME",…
-
4
votes1
answer216
viewsProblem with the sum of 10 numbers with for
I have a doubt in an algorithm that sums 10 numbers with the repetition command for. soma_numero := soma_numero + idade; When I declare the soma_numero as 0 before the for the algorithm runs…
-
4
votes1
answer180
viewsWhy does Floattostr exist if Delphi does not possess the Float data type?
Reading about the data types of Delphi/Pascal I realized that there is no type Float, however, there is the function FloatToStr(), as well as StrToFloat(). In this case, you could use floating point…
-
4
votes0
answers132
viewsProblem trying to delete a c# dll with Delphi 5 using COM
I have a DLL that I use to perform digital signature of PDF’s created in c# (Assinaturadigitalpdf.dll), it in turn uses a dll that handles PDF files (itextsharp.dll), I load it into Delphi and run…
-
4
votes3
answers858
viewsWindows service does not start automatically
I just implemented a Windows service I just can’t get it to turn automatically when the windows is started. I don’t know if it was some thing in the programming or some configuration of the windows.…
-
4
votes1
answer564
viewsHow to check if a process is running on the server?
Thinking about the nescidade of verifying if a certain application is running on the server, I came to mind if you have how to do this checking using Delphi and if positive as it would be? In case,…
-
3
votes1
answer733
viewsHow to identify which form has changed the property of a component?
It is possible for me to identify which form has changed the property of a particular component? For example, I have a Data Module with a ZTable which is accessed by several forms at the events…
delphiasked 10 years, 9 months ago Thiago Thaison 1,938 -
3
votes1
answer975
viewsScreens cut from Delphi in Windows 8 (intermittent)
How to Not 'Cut' Delphi Screens in Windows 8? The system was running smoothly on Windows XP. I went to Windows 8 and noticed that some screens come cut (you can read the top and the bottom).…
-
3
votes2
answers1717
viewsHow do I convert multiple ". dfm" files that are in binary to text format?
I have in hand a legacy project that was developed initially in versions prior to Delphi 7, where it has a very large amount of Units(. pas) and forms(. dfm). I have a problem because like the files…
-
3
votes1
answer2003
viewsHow can I check if there is a file in an URL with Idhttp?
I need to check if a particular file online is existing if it will return True, if not, False. Anyone can help?
-
3
votes2
answers1098
viewsUnable to load dbxmss.dll in Delphi XE4
When trying to connect, in Delphi XE4, a Tsqlconection with MSSQL, it asks user and password. After ok, appears: Unable to load dbxmss.dll I already searched the computer and there is this dll, nor…
-
3
votes1
answer1913
viewsCounting Items from a Listview
I need to count how many items you have added in one listview, I did the following: LV1.Items.BeginUpdate; try for i := 0 to LV1.Items.Count-1 do Label11.Caption := inttostr(i+1); finally…
-
3
votes1
answer697
viewsModular Application Delphi
I’m starting to work with modular applications in DelphiXE3, however I’m not finding much about. Picking up a little something from here, I created a dll with a form and added it to a DLL. My…
-
3
votes1
answer965
viewsZeos installation error in Delphi 7
How to resolve this error in Delphi 7 installed in windows 7? Zcomponent.dpk : Invalid Compiler Directive: '$ENDIF'
-
3
votes1
answer794
viewsDbedit apparently not linked to Tadoquery
I have a ADOConnection, one ADODataSet, DataSource, ADOQuery, one DBGrid and a DBEdit. The DBEdit is with the property DataField = numero. A button with the test: AdoQuery1.close;…
-
3
votes1
answer2266
viewsImporting data from a TXT to a Stringgrid
I have a stringgrid, and I need to import a file txt for him, however I need to take all lines according to positions, and I have no idea how to do, I did research, but without success. I need that…
delphiasked 10 years, 6 months ago Ramon Ruan 1,018 -
3
votes1
answer175
viewsHow to know if Lan’s IP was set manually or dynamically?
It is possible, maybe through WMI or using another technique, know if a computer is with your Local network IP (LAN) physically set (manually) or dynamically (usually by DHCP)? Like?…
-
3
votes1
answer61
viewsWhy isn’t the style being applied?
I have the following program: program Paker; {$APPTYPE GUI} uses Vcl.Forms, Classes, SysUtils, Vcl.StdCtrls; var FForm : TForm; FModeComb : TComboBox; FBtn : TButton; begin Application.Initialize;…
-
3
votes3
answers849
viewsDELPHI MVC (ECB)
I would like to know if anyone knows how to implement Pattern MVC (ECB) in Delphi. Usage Delphixe5 And I would like to make it as scalable as possible, and I know that one of the solutions is to…
-
3
votes2
answers436
viewsError compiling in Delphi XE5 UPD2
I’m having the following error when compiling on Delphi XE5, does anyone know what it might be? started after an unsuccessful attempt to install XE6.…