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
-
3
votes1
answer258
viewsHow to improve the performance of a key search?
In view of the fact that TDictionary exposes only ways to recover value through the key, I have the following algorithm to fetch a key from its value: var Table: TDictionary<Int64, Extended>;…
-
3
votes2
answers384
viewsCode Review at compilation time
I need to do an automatic Code Review on my codes. We used the Jenkins that triggers the compilation with some other validations every day, but at non-commercial times. As the project is very…
-
3
votes1
answer81
viewsHow to sync two Tlistviews?
I’m working on a App for Android using the Delphi XE8 and I need to synchronize two Listviews so that when the user downloads one, the other download together. How do I do it in Delphi?…
-
3
votes1
answer730
viewsFastreport prints blank space. (Delphi 2010)
I am beginner with fastreport 5, I have a problem, if anyone can give a tip. I’m doing a report that has several Databand, it’s like a data ladder, each son band of a band. The problem is that there…
-
3
votes1
answer130
viewsWhat kind of system modeling is that?
I have seen in several places companies that develop commercial systems (usually in DELPHI) and these respective systems are modeled so that they stay with an application "server" in which I believe…
-
3
votes1
answer776
viewsDelphi Web Service parameters
I have a service running in Delphi with Datasnap REST, it serves to read data and returns the query to those who requested, but now the client needs to consume this data via web passing some…
-
3
votes1
answer2204
viewsFiredac -How to use the same Fdquery in more than one bank?
I heard that the FD has to program for two different database managers using the same FDQuery, that is, could put the two SQL s of each bank in the same FDQuery... or something like that... Hold on…
-
3
votes2
answers615
viewsDoubt with cursor in memo
In my project VCL, I have a TMemo with the following text(| is cursor): | | |Hello world | | | | |test | | | | | When I press on Down button, the cursor moves here: | | |Hello world | || | |test | |…
-
3
votes1
answer688
viewsColor generator
I want to develop a generator of random colors but that are clear, that is, it is possible to read a text with black color on the color generated randomly. Random colors I can generate using the…
-
3
votes3
answers6801
viewsFiredac Connection with Postgresql DLL Error
I’m with DLL error not found when making a connection to Postgresql using the Firedac component. Error: [Firedac][Phys][PG]-314. Cannot load vendor library [C: EXE libpq.dll]. Hint: check it is in…
-
3
votes2
answers816
viewsHow to send text formatted with Tidmessage smtp and richedit
Hello. I am trying to send an email with formatted text using my Delphi program only instead of sending a text a file is sent. trx as an attachment. I’m using: Tidmessage -> Idmsgsend // tidSMTP…
-
3
votes2
answers255
viewsError while running the application on another computer
I developed an application that when running in my computer the same runs normally but when trying to run the same application in other equipment the following error appears and I can’t access the…
-
3
votes3
answers588
viewsOpen as an administrator only the first time in Delphi.
I have put a method in my system to change the registry by making it launch together with windows, for this it is necessary that the executable runs in administrator mode. The problem is that every…
-
3
votes0
answers101
viewsDivergence between versions of Delphi - Datasnap
Sqlserver database to proc receives a single parameter which is the guy’s registration and returns the balance. Very simple, but here on Delphi XE8 with Datasnap only returns zero and on other…
-
3
votes1
answer191
viewsDoubt referring to circular Referral of type customer <-> room
Well, I had asked but I guess it wasn’t clear so I’ll edit as you suggested, basically I wanted to do an application in Delphi using a Tsala class and several Tpessoa classes, however, the Tpessoa…
delphiasked 7 years, 11 months ago Daniel Yohan 35 -
3
votes2
answers498
viewsWriteln Locking in Delphi Seattle
I’m having a problem where by going through the job write it ends up locking inside the function, and does not return anything, having to close the application and open again, below the code for…
-
3
votes1
answer1107
viewsInfinite loop with "While not Cds.Eof’s"
I have a while not Eof normal in a Clientdataset. The only detail is in Afterscroll, where I edit the dataset in question and I give a post in the same. When the Eof is True, after the post he…
-
3
votes2
answers79
viewsConcatenate Matrix x Vectors
I have the following values in a Stringlist : 1111,2222 3333,4444 I have another String list with values 7777,8888 9999,0000 I need to add the values of the second stringlist, concatenating at the…
-
3
votes1
answer255
viewsAbort the execution of a long-term SQL
I have a very time consuming SQL (more than 10 minutes) to return the data. However, he is executed in a Thread and therefore the Mainthread continues to run normally. While SQL is running, the user…
-
3
votes1
answer135
viewsSeparate Letters from a string and add to a Combobox
Searching the web I found this function to returns the letters of the Hdds. function tbDriveLetters: string; { Uso: S := tbDriveLetters; - retorna 'ACD' se existir as unidades A:, C: e D: } var…
delphiasked 7 years, 6 months ago ProsTecnologia 560 -
3
votes1
answer115
viewsWhy does Shortstring consume more memory than an ordinary String?
I made an example here to see how much memory consumes each variable and noticed that a variable of type ShortString consumes 256 while a variable of type String consumes only 4. Following example…
-
3
votes1
answer669
viewsHow to install mORMot?
The site is confusing, the documentation talks little about the installation process. I added the libraries in the path lib and it didn’t work, some projects just didn’t compile. Then I would like…
-
3
votes0
answers539
viewsHow to find and open . txt file, add info and save? Inside Android
I’m using Delphi Berlin 10.1. I could not use Opendialog, it simply does not open inside Android. I searched the root of the android that is in /Storage/Emulated/0/ where I should find a file .txt…
-
3
votes1
answer976
views'Could not Convert Variant of type (Null) into type (Double)'
if DataModuleGeral.tbHonorariosPERCENT_ADV_ASSIST1.AsFloat = 0 then begin DataModuleGeral.tbHonorariosPERCENT_ADV_ASSIST1.Value := Null; end; I have the above routine that when the percentage cap is…
-
3
votes1
answer448
viewsDistinct Count no fastreport
How to make a Distinct Count in the Fastreport? I have the report: Name - sex John - m John - m Maria - f In the Count normal, the result would be 3, but I want one that only takes the number of…
-
3
votes1
answer174
viewsGenerate number using Identity
Is it possible to generate a number before writing the record to the database? Use field identity do SQL Server 2014. Work with Delphi Berlin.
-
3
votes2
answers126
viewsError opening form - Delphi
I have an application that was developed in Delphi7 and I need to make a change in a given form, but when trying to open this form to make these changes the following error window is displayed to…
-
3
votes2
answers304
viewsCreatedatabase Delphi VCL
How to create the database automatically if it does not exist, same in app from Delphi Android, but I want to do it with Delphi VCL. I want my application in the first run to automatically create…
-
3
votes1
answer1350
viewsMake image responsive in Delphi
I’m in a project and I need to put a background image, I would like to leave this responsive image but I’m not getting it. I’m using the Timage to insert the image.
-
3
votes3
answers1190
viewsProblems with Midaslib
I am trying to run an application in Delphi, but every time I try to compile a "Unit 'Midaslib' not found" error appears, there is some way to put this library manually? I found that in the past…
-
3
votes2
answers646
viewsPick up Checkbox value from a form as Boolean for another form
I have a checkbox on a form and I want to receive its value on another form like boolean, for example: CheckBox1.Checked = true want to receive as value 1, and CheckBox1.Checked = false want to…
delphiasked 7 years, 1 month ago Alex Borelli 31 -
3
votes0
answers24
viewsCache Mysql Web Base
Good morning, I have an application developed in Delphi 2010 with Mysql, the base is server on the Web, a few days ago they migrated this server and updated the version of Mysql, since then I have…
-
3
votes2
answers731
viewsForm not downloaded from memory
Hello guys I need help. Dude form not downloaded from memory so I can’t call him again. Follows code below: If formage=nil then Begin I create the form and no onclose of form Action:=cafree:…
-
3
votes1
answer343
viewsProgress bar in console application in Delphi?
I would like to display some kind of animation in my console application during a long process. Could be a progress bar or another animation.
-
3
votes1
answer3941
viewsDifference between Winexec and Shellexecute
Good morning, you guys! I have a personal question I haven’t found yet, so I come here. What’s the difference between WinExec and ShellExecute at Delphi? I ask this question because recently I had a…
-
3
votes1
answer1184
viewsHow to select Tedit field text in Delphi 10
I have a very basic problem and I can’t figure out the cause... I need the text from within a Tedit to be whole selected when the field receives focus. In the times of Delphi 7 with VCL I was only…
-
3
votes2
answers732
viewsI opened a Form inside a Panel
Seeing a Question here on Stackoverflw where one of the answers was to open the Form within a Tpanel. It is possible to open a Form within a Tpanel? And if positive as one does to open a Form Within…
-
3
votes1
answer54
viewsWhat is the cost of an update when it does not find the record?
I’m doing some Sqls in my Delphi program and I came up with this question, what is the cost to the bank engine when a UPDATE does not find the record according to the parameters of WHERE? My…
-
3
votes1
answer84
viewsDirectshow9 Delphi 7 error
Good afternoon, you guys! I’m having an error compiling my project in Delhphi 7, when I compile it gives me the following error Fatal [Fatal Error] AUTOINSTALLER.dpr(6): Unit Directshow9 was…
-
3
votes1
answer2324
viewsPopular Clientdataset with JSON truncates the data in 255 characters
I am trying to pass a JSON to a Tclientdataset using the following function: procedure JsonToDataset(aDataset : TDataSet; aJSON : string); var JObj: TJSONObject; JArr: TJSONArray; vConv :…
-
3
votes1
answer566
viewsError closing form with Tacropdf in Delphi
This "blessed" component, unfortunately I need to use it, it happens that whenever I try to close the Form it closes, but always gives a Accessviolation. There’s nothing in Form but a Tacropdf and a…
-
3
votes2
answers1095
viewsDeclare const array of Variant
When I need to use array const I usually do so: var Campos : array [0..2,0..1] of string = (('campoa','AAA'), ('campob','BBB'), ('campoc','CCC')); I would like to declare the above const as of…
-
3
votes1
answer774
viewsPrint coil style on Rlreport
I developed a coupon-style report, where I have the header and items of my note. RLReport - PageSetup: Orientation : poPortrait PaperHeight : 220 PaperSize : fpCustom PaperWidht : 80 In my Rlreport…
-
3
votes1
answer278
viewsFieldbyname bold parameter
Hello, I have a Richtext that I inserted the text via programming, but it has some parts of this text I bring from the bank, I need these specific fields to be in bold inside Richtext. Follow an…
-
3
votes2
answers727
viewsReduce Firebird memory consumption when closing Dataset
I have an app Delphi XE7 which rotates on a seat Firebird 2.5. When I open a FDTable with a 10,000 records for example, Firebird server memory consumption increases by about 1 MB. So far so good,…
-
3
votes1
answer514
viewswebservice Rest to receive an xml in Delphi
Good afternoon. A client wants to send me an . xml file I created a Datasnap Rest Application project. I have implemented the method as follows for JSON function…
-
3
votes1
answer52
viewsHow to disable a Ttimer object when clicking a button that opens another form and re-enable it when the other form is closed?
Good morning. I have a timer running on a form that calls several others. When this form opens another the timer should be stopped and when the form that was opened is closed the timer should be…
-
3
votes2
answers259
viewsSend e-mail with various attachments
I am sending e-mail through the INDY, the email is being sent and the attachment is going, but as it appears in the code below, I do a go through all the attachments, and it only sends the last,…
-
3
votes1
answer208
viewsHow to Shuffle Characters from a String in Delphi
Would it have any function to shuffle in Delphi to shuffle a string. String Ex := 'wooden house'; Return ex := 'medr ci saedaaa';…
-
3
votes1
answer123
viewsSearch for products with more than one word Delphi
I am developing an application and would like to know how to research a product for more than one part of the name, for example: Product: DDR3 8Gb Notebook Ram Memory I would like to do the search…