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
-
6
votes2
answers5023
viewsFill in a Word document from Delphi
I want to create a system in Delphi, where I fill in the labels and then creates a word document with the information I typed... I put an example below where I will type the information and when I…
-
6
votes3
answers13945
viewsHow to compare the difference between two dates in Delphi?
I need to compare 2 dates to know if the due date is Greater that the current date, if it is Minor it returns an error, follows the code I did and did not work. var Data_Atual: String;…
-
6
votes1
answer817
viewsFortesreport at Delphi
Someone would have some mini application to let me know how Fortes Report works? I’ve already made a report with the strong report, but what I’m getting wrong, is that I have to put a Bane…
delphiasked 10 years, 5 months ago Ramon Ruan 1,018 -
6
votes1
answer5010
viewsHow do Bematech printer cut the print in half?
I am implementing a report in Report Builder in Delphi and I need that in the middle of printing, the printer (Bematech - MP 4200 TH non fiscal printer) make a cut and continue in the same print.…
-
6
votes1
answer1270
viewsPrint Oleobject ("word.application") with Delphi
I’m trying to print an interval of pages from objeto OleObject ("word.application") in the delphi 6 and I’m not getting it. Using the printout(false) = I can successfully print, but I want to print…
-
6
votes2
answers12692
viewsFind out if item is in array
How do I check if an item is in a array? Ex: var Tabela : Array of String; begin Tabela[0] := 'Valor'; Tabela[1] := 'Value'; if Tabela[0] = 'Valor' then // do wathever; That would be the normal way,…
-
6
votes1
answer650
viewsWhat is the difference between Getcurrentprocess and Getcurrentprocessid?
What’s the difference between the call GetCurrentProcess and the MainHandle defined below: var MainHandle: THandle; begin MainHandle := OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessID);…
-
6
votes3
answers3133
viewsView Form with animation (gif) while a while runs
In the application I am developing I need to check if a process is running on the system, for this I use a function (Isrunningprocess). However, I would like to display a form (Formprogress) which…
-
6
votes3
answers7489
viewsHow do I make a Delphi application run as an administrator?
I’m using Delphi XE4 and have no idea how to get an application to ask administrative permission for Windows 7 to run, I searched websites and bolgs, but I couldn’t find the answer! Help me please!…
-
6
votes2
answers355
viewsUpdate dlls in client
I have a software that communicates with a Mysql 4.1.14 database. I installed a new server for Mysql 5.6 tests, but when I communicate with the new database, the message appears stating that the…
-
6
votes1
answer1099
viewsWhat are the advantages of using namespaces in Delphi?
From the 2009 version of Delphi (if I’m not mistaken) came the namespaces. I would like to know, in a simple example if possible that illustrates a case of advantage, what would be the advantages of…
-
6
votes1
answer1038
viewsCouldn’t perform the Edit because Another user changed the record
Does anyone know if there is any trace of a table that is dropped from a bank? To make it easier if it’s recreated, for example, and when I say vestige is in the bowels of the bank itself. I’m going…
-
6
votes1
answer942
viewsRemove noise, dots and image strokes
I would like to know how I can process a captcha image to remove noise, strokes and dots. Here are examples of how you are and how I’d like you to stay. Original Image: Adjusted Image:…
-
6
votes1
answer1945
viewsError to get Windows 10 version with Delphi
I am trying to get the version of Windows 10 on my system, but the most it displays is Windows 8. Neither 8.1 it displays. I couldn’t find the mistake. // Função Sistema Operacional function…
delphiasked 8 years, 11 months ago rafaeloliveira 419 -
6
votes1
answer483
viewsMigration, Delphi and Firebird. What is the correct way to deal with the Encounter issue?
I have a project in Delphi 7 that makes use of Firebird. I think about migrating this application to a Delphi XE version*. However, we know that from Delphi 2009 the String standard is Unicode and…
-
6
votes3
answers956
viewsBecause there are two uses in Delhi
Because there are two uses in the Units of Delphi ? Just below interface and soon another in implementation, what the purpose?
delphiasked 8 years, 4 months ago Carlos Bridi 831 -
6
votes1
answer172
viewsIndentation in a Tedit
It is possible to indent a text inside a TEdit or a derivative component (ex. TLabeledEdit)? If yes, how? I don’t want to line him up (Left, Center, Right), I just want to indentify it, like it’s…
-
6
votes2
answers155
viewsIncompatible data types when calling Procedure
I’m having trouble calling the next trial in my form: procedure TDM_Maquinas.IBDSMaquinasCOD_LINHASetText(Sender: TField; const Text: string); begin if Text <> '' then begin if Text = 'Linha…
-
6
votes1
answer801
viewsChange Inputquery Box Size
The InputQuery is a message where we can enter a certain value, but changing the value of the variable passed as reference, see its structure : //Função InputQuery function InputQuery(const…
-
6
votes2
answers139
viewsWhat are the consequences of leaving the system without closing the tables?
What are the consequences of Quit / Quit of a system without closing the database tables? This harms something in the database? I should or should not close the system tables? procedure…
delphiasked 6 years, 1 month ago Edu Mendonça 2,564 -
5
votes1
answer2169
viewsProblems with slowness Delphi and Firedac
I have an application developed in Delphi XE and a month ago I changed the whole persistence structure that used to use ADO for Firedac. In the compatibility of the new persistence component I used…
-
5
votes2
answers4586
viewsHow to create an AVD for Android in Delphi
I’m starting at Delphi® XE5 and would like to know how to configure/create an AVD to emulate Android applications. Only gives me the option to choose the device, but I have nothing in Target Android…
-
5
votes1
answer469
viewsAm I loading this Song correctly with Bass.dll?
Based on documentation from Bass, i am trying to upload a common ogg file, with the following code: var FFile : string; Music: HSAMPLE; ch: HCHANNEL; OpenDialog1 : TOpenDialog; begin…
-
5
votes4
answers1842
viewsHow to know the Kb size of a string?
I have a string which will be saved on file xml, and this file cannot be larger than 500 kb. How can I identify the size of the string which I will save on file xml? When the string is saved in the…
-
5
votes2
answers5867
viewsCommunication between applications using socket through UDP making Multicast
I’m trying to communicate between applications where one of them transmits a certain message and the others just receive, I don’t know the IP address of the ones that will receive and even if they…
-
5
votes1
answer2491
viewsDifferences in the dynamic creation of an object
When I create an object dynamically, for example a form, I do so: Formulario := TFormulario.Create(nil); try Formulario.ShowModal; finally Formulario.Free; end; What’s the difference in creating an…
-
5
votes1
answer610
viewsHow to encode an array of bytes (string) in another database in order to represent the result with the characters of A-Z and 0-9 in Delphi?
I need to reduce the size of a string, but keep it in a predetermined character range. Use an encryption routine that the result returned by it is a hexadecimal character set, par a par,…
-
5
votes1
answer934
viewsChanging properties of a component contained in a system module
I am modulating a system developed in Delphi XE3. One of my modules named Default has a dmDados with a connection. In my main application, onShow from my main form I am loading the module and trying…
-
5
votes4
answers2291
viewsWith Delphi, how can I disable the ESC key for all apps?
I need to disable the esc for all programs using Delphi. Probably the form has to be always active and I disable the key in a way similar to the example below. My code so far: procedure…
-
5
votes1
answer5666
viewsConvert Image String to Bitmap Delphi
I have an application that sends photos, these photos are stored in the database (SQL Server) in a varchar(max) as a text. So far so good. Now I need to convert all this text into Bitmap and show…
-
5
votes1
answer121
viewsD7zip file list
I’m using the D7zip(https://code.google.com/p/d7zip/source/) to extract files, and would like to receive the entire list of files from the archive archive. In the documentation, I found this: with…
-
5
votes2
answers2617
viewsHow to list objects of a deteminated class?
For example, let’s say I have a class TConfiguracao. Here constructors and destructors attributes and in some cultures I create several variables of the type Tconfiguracao conf1 :TConfiguracao;…
-
5
votes2
answers1135
viewsFormat Customformat value in Livebinding
I’m having trouble trying to use the property CustomFormat of Livebinding, I am trying to format a value obtained from database to number format with thousand separator. I’m using:…
-
5
votes1
answer10937
viewsDifference between Ansistring, Widestring, Unicodestring, Shortstring and String and how to convert
During my Delphi learning I see implementations that use AnsiString,WideString, UnicodeString,ShortString and String but I don’t know the difference between them. Another thing that always occurs to…
-
5
votes1
answer1536
viewsOperation with Delphi hours
I was manipulating hours in Delphi and I came across the following situation: CASE 1 horafinal := strtotime('08:00'); horaInicial := strtotime('17:00'); horaInicial := horaInicial - horafinal;…
-
5
votes2
answers701
viewsCreate Tedit Array at Runtime;
With the following code, I create an X amount of edits: var x : integer; var2: integer; begin var2 := strtoint(edit2.Text); for x := 1 to var2 do begin ArrayEdit[x] := TEdit.Create(Self);…
delphiasked 9 years, 2 months ago Guilherme Lima 3,129 -
5
votes1
answer612
viewsHow to disable and enable a network adapter with Delphi?
I have an application that at some point should disable and enable the Windows network adapter, I searched through the internet, but found nothing. Test before posting an answer because dubious…
-
5
votes1
answer10995
viewsHow to read a json file using Delphi
Good not being a pro in delphi want to read a file json and extract fields. http://www.nif.pt/? json=1&q=509442013…
-
5
votes1
answer957
viewsMerge Excel cells via Delphi code
I am updating an old system made in Delphi that uses a class to create an Excel file without the need to use OLE objects or have Excel installed. Class works normally using the code that is just…
-
5
votes2
answers2291
viewsCrop a piece of the image using mouse
Hello, I have the following situation, in a FORM I have any image, I need to select a part of the image through the MOUSE click, and as soon as I release the mouse button, that part I selected is…
-
5
votes2
answers1162
viewsIs it possible to leave the label and text at 90 degrees?
It is possible to make a TLabel stand upright, but your text like this: I have tested some components, but they do not work in the version of Delphi-XE8. I managed to let him in 90 degrees but the…
delphiasked 8 years, 11 months ago Guilherme Lima 3,129 -
5
votes2
answers17150
viewsHow to create an Anonymous Thread in Delphi
I would like to know how to create an Anonymous Thread in Delphi, if you can show an example I would be grateful.
-
5
votes1
answer2133
viewsIdentify what is in the USB port
When a device is connected to a USB port, the operating system identifies the device. For example, on Windows, you can see which devices are connected to USB ports in Device Manager. I need to…
delphiasked 8 years, 10 months ago Oralista de Sistemas 23,115 -
5
votes1
answer2028
viewsHow to get value from one form to another?
I have Form 1 and it has a field that in the action onExit I search the code in the bank and if not find I present a message if you want to register a product. If you open Form 2, now I’m not able…
delphiasked 8 years, 11 months ago EA.Jsp.Android 169 -
5
votes1
answer135
viewsShow hint only when the application starts for the first time
I have a desktop application that is a bit complicated, so I thought I’d help the user by generating images (Hints) to help on the way. But I know how boring this is, so I would like to know if it…
-
5
votes3
answers2378
viewsHow to list files and subdirectories in Delphi?
I created a project in Pascal-Object and at a given time it should list all the files and subdirectories located in the Desktop tree, I found some examples on the WEB, but none was useful enough, as…
-
5
votes1
answer558
viewsWhat is the difference between a Mediator Class (Interposer Class) and a Helper Class (Helper Class) in Delphi?
I’ve always worked more with interposer classes. I know it’s best to create components, but sometimes it’s faster to make a point adjustment using an interposer. New versions of Delphi have the…
-
5
votes1
answer1382
viewsWhat is the advantage of using an interface if I always get the same behavior using simple classes in Delphi?
First of all, I want to point out that this issue DOES NOT ADDRESS comparison between abstract classes and interfaces, it aims to find out if there is any advantage in using interfaces to the…
-
5
votes2
answers645
viewsPassing a variable within a precedent
I have this project procedure DocumentComplete(ASender: TObject; const pDisp: IDispatch; const URL: OleVariant); Now I need to use it in a loop by passing the count variable. I tried it as follows:…
-
5
votes1
answer739
viewsDeserialization of Object JSON morMot
I am trying to deserialize a JSON Object with an objectlist, following the example of the forum mormot does not work, someone can help me: Memo.Text :=…