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
votes2
answers520
viewsHow to find all '>' characters of a memo and store in an array using Delphi?
I have a field edit in the Delphi and need to travel it in search of the character > and store the position of all characters > in a vector. By doing this I can only get the position of the…
-
3
votes2
answers251
viewsFdquery what risks to use variable instead of Parameter
I’m making a connection to search for data inside the bank on one condition IN(), but I had trouble implementing it between FDQuery and the Firebird. Analyzing the problem I realized that command…
-
3
votes2
answers113
viewsTabstop de Radiobuttons independent of the Checked property
I have a set of Radiobuttons, Edits and Labels inside a Groupbox, as in the image below: I would like in the use of Tab the focus did not pass in any Radiobutton, and yes only in the Edits, for…
-
3
votes1
answer172
viewsXML tags being generated with prefixes
I am creating an XML file by Delphi and if I use the prefix when creating the first tag, the prefix "ns1" is added to all the tags that will come below, generating error in the integration with…
-
3
votes1
answer138
viewsHow to Know if the Form that is the son of a Tpanel is open
Opa! I have a question. How to know if a form assigned as a child of a TPanel this fir? My form is being created like this: if not(Assigned(Form2)) then begin Form2 := TForm2.Create(self);…
-
3
votes1
answer32
viewsError E2033 Types of current and formal var Parameters must be identical. How To Troubleshoot?
I’m trying to write a Project in Delphi 10. Procedure calls a form I use to display error messages. But when I try to make things work, Delphi gives an error like: [dcc32 Error]…
-
2
votes1
answer405
viewsHow to inherit from a Servermodule in Datasnap with Delphi XE3
I am migrating a Server application with Dcom protocol and Borland Socket Sever in Delphi 2006 to Datasnap in the Delphi XE3, but in the new version of Datasnap I am not managing to inherit a…
-
2
votes2
answers3056
viewsError connecting to Firebird 2.5 (64 bit) on Delphi XE3
I have the following error when connecting to Firebird 2.5 (64 bit) on Delphi XE3: DBX Error: Driver could not be properly initialized. Client library may be Missing, not installed properly, of the…
-
2
votes2
answers612
views -
2
votes1
answer308
viewsHow to read the 'Title' property in the Details tab of a FONT TRUE TYPE file?
I’m developing a small application that reads a . MDB, of which there are source names. Then I check if these sources are installed, if not, install them. But I have to know the Font Title name that…
delphiasked 10 years, 10 months ago user110569 45 -
2
votes1
answer1315
viewsMonitor Service with Borland Socket Server
I’m developing a three-layer application on Delphi-7 , using the component TSockecConnection. It is possible to monitor the connections, identify the IP of connected users as well as taking down…
-
2
votes2
answers1670
viewsHow to load semi-transparent PNG through a memory stream?
I have the following structure: public FBMP : TBitmap; ... var PNG : TPNGImage; Stream : TMemoryStream; begin Stream := TMemoryStream.Create; Stream.LoadFromFile('foo.png'); PNG := TPNGImage.Create;…
-
2
votes2
answers1293
viewsHide Subitems from a Listview?
Is there any way to hide subitems and their data from a listview? I tried to start the code with something like this: for I := 0 to Form1.LV1.Items.Count-1 do begin if Form1.LV1.Items[I].SubItems[5]…
-
2
votes1
answer1256
viewsAccess variable contained in a BPL
I have a system developed in Delphixe3 and I’m starting to modular it. However, another question has arisen. In a Unit that will be in one of the modules, I own: type TUsuario = record id:Integer;…
-
2
votes1
answer3282
viewsHow to make a CRUD via REST
Introducing I need to access a web service in PHP via mobile application. I have seen several videos and read many tutorials about Delphi’s REST Client. I even managed to develop a prototype of my…
-
2
votes1
answer262
viewsAbout Tadeventalert from the Firedac component suite. What is it and what is it for?
Continuing to wonder about components of FireDAC, component suite purchased by Embarcadero to the Delphi, would like to know about the TADEventAlert. What is the purpose of this component, and…
-
2
votes1
answer987
viewsHow to capture the HTML from the open page in Chrome with Delphi?
I need to capture the source code of a given HTML page opened at that time on google Chrome. In Internet Explorer I know how it does, Chrome does not find anything like it. Any suggestions ?
-
2
votes1
answer108
viewsHow to make the user not catch an Invalid TXT?
Follows the code: procedure TfrmGrid.btnLoadClick(Sender: TObject); var txt: TextFile; l, treg : integer; lTemp: String; begin treg := 1; l:= 0; AssignFile(txt, lbCaminho.Caption); Reset(txt); while…
delphiasked 10 years, 8 months ago Ramon Ruan 1,018 -
2
votes1
answer6289
viewsSave Clientdataset data to an XML file
I made a simple registration system without involving database, I need to know how I write files of the Clientdataset register in an XML file and when I go to query they appear in my grid!
delphiasked 10 years, 8 months ago anderson seibert 569 -
2
votes1
answer2912
viewsExtract Thread Digit Maturity
I have the following digitized line of a billet, I need a function to extract the expiration date from it, and then use in other. Type line: 74893.12004.21627.007186.37931.981056 1 59490000041480 I…
-
2
votes1
answer1478
viewsIntegrate Qrcode reader into Delphi system!
I would like to know if it is possible to integrate a Qrcode reader that uses Webcam to read. Or a barcode reader. I have no idea how to start, so I haven’t done anything yet!
delphiasked 10 years, 8 months ago anderson seibert 569 -
2
votes2
answers821
viewsAssociation of a Clientdataset and a Tzquery (Zeoslib)
I have a question about the association of a ClientDataSet and a TZQuery. I wanted to associate the same table I selected in my TZQuery, with my ClientDataSet, because I want to generate a file…
delphiasked 10 years, 7 months ago Ramon Ruan 1,018 -
2
votes2
answers888
viewsFormat date (from a txt file) to Insert to Mysql
Follows the code: //informações necessarias para inserir no DB. coo := copy(lTemp,53,6); ccf := copy(lTemp,47,6); ecf := copy(lTemp,4,20); //Data sendo formatada para ser inserida dtc1:=…
-
2
votes1
answer982
viewsChrome Extension x Delphi
Does anyone know how to communicate an extension created for CHROME with DELPHI ? Something like sending DELPHI commands to that extension OR vice versa ? Follow the extension code that captures the…
-
2
votes2
answers629
viewsRecover Auto Increment Id from Datasnap Delphi XE3
Using Delphi XE3 / Datasnap with Firedac When I have the parent table saved on the server I want to recover the value that was added via auto increment in the parent so that I can inform this new…
-
2
votes2
answers1063
viewsSend CTRL+V via Postmessage
Hello, I need to send click combination CTRL+V via POSTMESSAGE. I tried to do it this way: PostMessage(h,WM_KEYDOWN,VK_CONTROL,0); PostMessage(h,WM_KEYDOWN,VK_V,0); (Ele da erro nessa linha diz que…
-
2
votes3
answers1786
viewsForm always visible
Good people, I came here because I don’t know what else to do, I tested everything.... need to make my FORM2 always visible (above) of all open programs in windows. My program did as follows: Form1…
-
2
votes1
answer918
viewsWindows Service and auto-update process being accused of viruses by Avast
My application Windows Service made in Delphi 6 is being accused as virus by Avast in the process of self-updating. Just when the executable construction process, after the build, is finished Avast…
-
2
votes1
answer250
viewsGet Firefox DLL Ddeclient Source Code
I know it is possible to capture the FIREFOX URL using Ddeclient, but someone else has already used it to get the source code of the open page ? Follow the code to capture the title: procedure…
-
2
votes1
answer1578
viewsDelphi: How to get information and manipulate Html in a Tstringlist?
Working with the TWebBrowser you can easily interact with the elements, get fields, set values. Example: webBrowser.OleObject.Document.GetElementByID('name').setAttribute('attribute', 'value'); My…
-
2
votes1
answer542
viewsListview, do not repeat records
I have 2 listview and a timer. This timer captures the records that exist with a certain comment and puts in the other listview. It turns out that he is repeating the records, I would like him to…
-
2
votes1
answer87
viewsSaves more records than Needed in my DB
Follows the code: // Leitura Dados Itens da Nota Fiscal... xmlNCab := NoPrinc.ChildNodes.FindNode('det'); while not (xmlNCab = Nil) do begin inc(l); sgProds.RowCount := l;…
-
2
votes1
answer78
viewsIs it advisable to keep a zTable always open?
I am developing a product registration system and cash front. My main form is the Order screen and from it I open the other registration screens (Unit of Measure, Products, Payment Methods,…
-
2
votes1
answer745
viewsExplodes in Delphi
I have a txt file in which data is saved as follows: 00:46:30@21/08/2014@Carlos dos Santos@são Paulo In PHP I would use the explode to turn each die before "@" into columns. How do I do this in…
-
2
votes1
answer181
viewsChanges in source code are ignored by the compiler
I have a little project in Delphi 2006, and I migrated it to Delphi XE6. However, from this migration, I realized that the changes I make in the source code, such as changes in the form title,…
-
2
votes1
answer1846
viewsStoring images in Mysql and treating by file size
I was able to store images in my bank, the problem now is just to treat so that the images only enter the bank to a certain size, assuming: 800kb. How to proceed? Follows the code: Botão Gravar:…
-
2
votes1
answer1222
viewsRun commands when opening program
Well, I am trying to execute several commands when opening the program, but this prevents the same to be shown at the desired time, since it executes all to then show. I am trying to execute such…
-
2
votes1
answer44
viewsTo continue if true
Well, I’m trying to run several downloads, one after the other, and I’d like you to start the next one after the other. The codes are these: if StrToInt(version) < StrToInt(version2) then begin…
-
2
votes2
answers1243
viewsError assigning dynamic values to the Unidac Tuniconnection component
Using Unidac components for Delphi XE5, I found an error when assigning dynamic values to the Tuniconnection component, responsible for connecting to the database. Error message appears after…
-
2
votes1
answer874
viewsType the product name in the Edit and take the database image in the Timage component
I’m making a system where I need to search the name of the product. Below Edit appears a grid for auto complete, then when I press Enter on the product name, on the grid, you need to appear on the…
-
2
votes1
answer1024
viewsCreating Tedit in Real-Time and Onenter Action
Lately I’m developing a mobile app and need to create a TEdit in real time with the predefined action function. So far I can create, but without the function OnEnter action. Here is the code:…
-
2
votes1
answer674
viewsListview does not repeat records
I have a file txt with multiple records inside, I need something that at the time the function is added to the ListView these records, do not let repeat items be added. To do this, it could use a…
-
2
votes1
answer475
viewsPersonality is not avaliable
For the second time in these last days, after restarting the computer I get the following error message when trying to open the project on Delphi X5 that I have been working for many months: The…
delphiasked 10 years, 3 months ago Alex Schmitt 367 -
2
votes2
answers1047
viewsUsing timestamp in different fields
I have a timestamp field in a postgres table. I would like to treat, in Delphi, the date in one dbedit and the time in another, is there such a possibility? In the tests I performed, I can change…
-
2
votes1
answer1847
viewsGet the name of an object attribute
I have the following class TLog = class private FDescricao: string; FCodigo: Integer; public property Codigo: Integer read FCodigo write FCodigo; property Descricao: string read FDescricao write…
delphiasked 10 years, 2 months ago felipearon 715 -
2
votes1
answer204
viewsIs it possible to work with spatial object attribute tables in Delphi and dbExpress?
I have a spatial database in Mysql where the geometry and attributes of space objects are stored. I tried to create a basic form, as basic as possible using Sqlconnection, Provider, Dataset,…
-
2
votes1
answer605
viewsFilter dbgrid with lookup fields
I made a generic search form for my application, but now I realized that I can’t filter the dataset using lookup fields, is there an alternative to not using a query? A component that can do this…
-
2
votes2
answers2180
viewsDelete item from Dynamic Array
Well, I’m trying to use this Procedure to delete array items: Before I declared in Type: TStringArray = array of string; In public: filestoadd : TStringArray; And no create: for x:=0 to 5 do begin…
delphiasked 10 years, 3 months ago Gabriel Sales 1,257 -
2
votes1
answer343
viewsMagnifying glass for the keyboard cursor
I would like to create a magnifying glass to enlarge the region around where the keyboard cursor is positioned and also the focus on a form. I wonder if anyone has any suggestions on the subject. I…
-
2
votes1
answer642
viewsPicking multiple values between tags
I need to pick a value between the tags of a text, so I found here on the site the function: function ExtractText(aText, OpenTag, CloseTag : String) : String; It worked perfectly, but with only the…