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
-
1
votes1
answer989
viewsHow to call an inherited form precedent through the standard form?
In my application made in Delphi 7, is created some Runtime objects in the standard form, as buttons manipulate record, procedures and common functions. There is one standard form of queries,…
delphiasked 6 years, 9 months ago Carlos Andrade 727 -
1
votes1
answer527
viewsHow to obtain hierarchy structure of a Delphi component?
Guys I’m trying to refine my bug log and I came up with an idea. Using a component ApplicationEvents I have a routine that records the error log, in it I get the error in E.Message, and the Sender…
-
1
votes1
answer677
viewsHow to Do Basic Type Authentication with Delphi XE8
I am developing an application in Delphi xe8 that will consume web service data that returns data in json. The problem is that it is presenting the message HTTP/1.1 401 Unauthorized…
-
1
votes1
answer56
viewsHow to hide system images, from android firemonkey gallery apps?
I need the images used in the system not appear in the android gallery application, as they are images used only by the system and when viewing them some customers delete them.
-
1
votes1
answer2699
viewsHow to save Fastreport to PDF in silent mode?
I can generate the PDF from the code below: fdm.frxPDFExport.FileName := 'C:\PASTA_TESTE\ARQUIVO_TESTE.PDF'; frxReport.PrepareReport(); frxReport.Export(fdm.frxPDFExport); The detail is that it…
-
1
votes1
answer217
viewsError(Bitmap size Too big) when using Timage in thread firemonkey android
Use this function to generate images in the system: procedure converte_jpg(Bitmap: TBitmap; Stream: TMemoryStream); var surf: TBitmapSurface; saveParams : TBitmapCodecSaveParams; begin surf :=…
-
1
votes3
answers464
viewsdrop table with temporary table giving error
qryCIDtemp.SQL.Text := 'drop table if exists #tempCID'; //apaga a tabelas temporária Delphi returns me the following message at runtime: Invalid use of keyword Token: if Line Number: 1. If anyone…
-
1
votes1
answer42
viewsString to Stringstream conversion failure
I’m having a problem converting the contents of a String to Stringstream. The contents of the string are:…
delphiasked 6 years, 7 months ago Rodrigo Tognin 1,057 -
1
votes1
answer379
viewsHow to set a path (FTP) to automatically upload to Delphi?
I need an Upload automatically in the code below to send to the server via FTP using Delphi, it is possible? var ms: TMemoryStream; begin if OpenDialog1.Execute then ms := TMemoryStream.Create;…
-
1
votes1
answer533
viewsRichedit Delphi messes up text when writing to Postgresql database
I’ve tried almost everything. I have a system in Delphixe6 with Postgresql, in it I have some Text type fields that I need to record formatted text (bold, italics, background color, etc) like word,…
-
1
votes2
answers2179
viewsHow to submit information to a json api in Delphi 7, Please help me
Using Delphi 7 how to send information to an API by clicking a close button? The data sent would be a JSON.
delphiasked 6 years, 2 months ago Hugo Souza 13 -
1
votes1
answer179
viewsAcbrsat error after SNV update
I use Acbrsat in a box front, it happens that after updating Acbrsat by SVN my project does not compile more, gives error in the following lines if ACBrSAT1.Modelo = mfe_Integrador_XML then begin…
-
1
votes1
answer247
viewsHow to insert this text in Postgresql?
I am using a Delphi query and need to insert the text below in a text field {\rtf1\ansi\ansicpg1252\deff0{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}{\f1\froman\fcharset0 Times New…
-
1
votes1
answer138
viewsDelphi Computer Shutdown Problem
I am using the following code to shut down the computer via Delphi program: //Adicionar à cláusula Uses, Shellapi e digitar os parâmetros abaixo no clique de um botão por exemplo: // Desliga o…
-
1
votes1
answer985
viewsExternal exception C0000006
This week I’m hitting myself on this mistake on some machines where the system is running. Excepção externa C0000006 EXCEPTION_IN_PAGE_ERROR The machines have access to the system through a shared…
-
1
votes1
answer264
viewsHow to move Form with Borderstyle in bsNone
How do I move the form after setting the property BorderStyle = bsNone? Because on the edges I can’t drag the form with the mouse.
-
1
votes1
answer439
viewsHow to return an object from a bank in QTL(Mongodb)?
I currently have some objects in a Mongodb database. The structure is as follows. { "_id" : ObjectId("55cb9c666c522cafdb053a68"), "geometry" : { "type" : "Polygon", "coordinates" : [ [ […
-
1
votes1
answer647
viewsHow to insert equal objects or list of objects in Mongodb?
Example, I have the following JSON: { Casa:'b32', integrantes:{ pessoa: 'joao', pessoa: 'Maria', pessoa: 'Daniel' } } When you enter it into the database it looks like this. Apparently it is…
-
1
votes1
answer144
viewsError while converting SQL - Datasnap Rest
I have a problem: I have a datasnap/Rest server, in the same I have the following method: Function TServerMethods.getComandoSQL(ASQL: string): TFDJSONDataSets; begin qryComando.Active := False;…
-
1
votes0
answers38
viewsDelphi - Drawing from coordinates
Goodnight, I am creating a program to read a file . plt and from this file remove the coordinates of X and Y and save in two variables. Now I need to draw these coordinates in the program. I…
delphiasked 5 years, 9 months ago Guilhermeths 33 -
1
votes1
answer274
viewsClone Dataset (Tzquery) in Delphi 7
Hello, I have an application in Delphi that does the following: Make a query in the Postgresql database using the Zeos Tzquery/Tzconnection components, then scroll through the result and save it in…
-
1
votes1
answer564
viewsPrevent character typing if monetary value is incorrect in Delphi
My goal, using Delphi 10.1, is to compare the text typed in an Edit, at the time of typing a new character, if the text format after typing the key (which can be typed at the end, beginning or…
-
1
votes1
answer137
viewsAdding Stringlist values to a Psafearray
I need to take the values that are stored in a Tstringlist and add these values in Psafearray, which will later be sent as parameters to a dll. I have tried in many ways, but all to no avail. Could…
-
1
votes1
answer60
viewsChange Property in Run Time
How can I change the property TRectangle.Align in Runtime Delphi 10.2 using Firemonkey for multi-platform application?
-
1
votes1
answer305
viewsHow to define an empty XML tag with Delphi?
I developed a system, still at Delphi 6, for Occupational Medicine, I know I have to update, but it’s impossible to do this now. My problem is with creating an XML file to export data to E-social. I…
-
1
votes1
answer155
viewsRun Oncalcfield only when pressing [Enter]
I have a DBGrid which searches several records recorded in the table just when the form is opened, this should show exactly everything that has saved in the table. There are some fields calculated…
-
1
votes3
answers514
viewsListview Event Error ( Listview1updateobjects ), to show or hide item. ( Delphi firemonkey )
If anyone can help me, I’m having a problem in a method of a ListView, the method is the TForm13.ListView1UpdateObjects in it I do the following procedure: I check the value of an item to decide…
-
1
votes3
answers951
viewsTxmldocument load from a String
I’m new to Delphi and I’m having trouble loading an XML document from a string. There is no mistake, just does not load, it makes me think I must be making some very silly mistake. My code is this:…
-
1
votes0
answers431
viewsCreate function that receives an XML in the SOAP Server (Delphi)
Good morning. Reading several files, tutorials, etc on the net, I managed to understand and develop a SOAP server (Delphi 7 and Tokyo). I created several functions to receive values and return…
-
1
votes1
answer44
viewsHow to obtain the same value?
I have a code in Delphi that is responsible for an ESC/POS communication with a matrix printer...: var comando : AnsiString; pL, pH : AnsiString; begin pL := #147; //96 pH := #2; //2 comando :=…
-
1
votes1
answer200
viewsGet Tjsonstring value from Firemonkey (Delphi)
good afternoon! I have a problem and I’d like to see if you can help me. I have a Datasnap server, which is working normally. In it, I include and query in the database by mobile devices. In the…
-
1
votes3
answers488
viewsUsing Datetimepicker with Time
I’m using the Tdatetimepicker component. I put in the FORMAT property the following value: dd/MM/yyyy HH:mm:ss Running in form if not "click" on component and change values, example 21/09/2018…
-
1
votes1
answer338
viewsHow to run a trial only when the previous one is finished?
I have 2 procedures, one compresses the file and the other sends it to FTP, but the upload process is running simultaneously with the compression process, and tries to send the file before the…
delphiasked 6 years, 4 months ago LeandroRocha.me 13 -
1
votes2
answers186
viewsCreate field only in Dataset with default value
How I create a field in the ClientDataSet that is not in the database and I leave it with a default value? I need a field like FLAG_EXEMPLO standard’S' only that I cannot create the same in the…
-
1
votes0
answers54
viewsStrange problem with Registerclass
I have a very strange problem. I have 2 projects Delphi, both are with build with Runtime Packages to false. It happens that the Registerclass process does not work in one of the projects, causing…
delphiasked 5 years, 4 months ago Adriano Reiter 11 -
1
votes1
answer2576
viewsBad Request in Post idHTTP with Delphi
I am trying to communicate with the API of an Ecommerce and all dozens of attempts that did only receive as response "HTTP request failed 400 HTTP/1.1 400 Bad Request". So I have been informed I…
-
1
votes1
answer195
viewsFunction call dll C# (VS2010) using COM in Delphi 5 does not pass the parameters correctly
Good morning, I created using Unmanagedexports a dll in c# (Visual Studio 2010) to be consumed in a form Delphi 5, as per: C#: using System; using System.Collections.Generic; using System.Linq;…
-
1
votes1
answer1390
viewsDelphi Traversing An XML Nodes (DOM)
I have the code below, but I’m not able to list the node name and its value. I can search and show the main node type [ide] but the sub-node that would be [Cuf] + value that I can’t. procedure…
-
1
votes2
answers118
viewsHow to improve the performance of an xls file generator in my Delphi 4 + SQL Server 2000 application?
I implemented the following procedure in an application made in Delphi 4, but the time to generate an xls file with Dataset data is 55 seconds and the dataset has approximately 50 lines. Any tips on…
-
1
votes1
answer793
viewsExample of request with Delphi
I need to consume a Rest api that returns json. The system was made with Delphi, I’m using the ide Delphi xe7, I never made requests to consume api on desktop systems, based on where I start? Check…
-
1
votes1
answer33
viewsJAVA functionality compared to Delphi to find a value in a specific list
Hello, would someone like to tell me if there is a feature in JAVA similar to Delphi Locate? If Lista.Locate('REGIAO;PRODUTO', VarArrayOf([REGIAO.AsString, PRODUTO.AsString]),[]) Then[...]…
-
1
votes0
answers51
viewsRead the Selectedvalue property of a Combobox with Livebindings
I need to recover the value of the property Selectedvalue of a Combobox that is connected to my table through Livebindings. I have seen suggestions to connect the Selectedvalue to the TAG property…
delphi combobox firemonkey delphi-10 bindingasked 4 years, 10 months ago Christiano Ribeiro Soares 108 -
1
votes1
answer421
viewsDelphi Mdichild flashing form when opening in modal mode
I have a form MDIChild which I open as follows: Application.CreateForm(TfrmManProduto, frmManProduto); However, sometimes I need this form in modal... with some tips I adapted my code the following…
-
1
votes1
answer758
viewsIDHTTP with Delphi - HTTP request failed 401 HTTP/1.1 401 Unauthorized
Good afternoon. I have an example of PHP PUT request code: $params["access_token"] = "### Chave de Acesso ###"; $data["Product"]["stock"] = 100; $url =…
-
1
votes1
answer74
viewsHow to do this Regex in Delphi
I’m having trouble making the following mask. Valid values: 1.98.212 1.98 1 What I’ve managed to do so far: \d{0,1}(\.\d{0,2})?(\.\d{0,3})? You’re wrong because you can insert 1,999, because…
-
1
votes1
answer98
viewsMulti-layered development and business rule
I work with a team developing an ERP and am responsible for issuing reports, of which one of them runs a select in the bank that in tests took more than 2h running, which led to errors and a big…
-
1
votes0
answers143
viewsError while converting Delphi function to C#
Good evening, everyone! I’m trying to convert a Delphi function to c# and I’m getting it, where am I going wrong? Delphi code: function TCriptografa.CriptoBinToText(SText: string): string; var SPos:…
-
1
votes1
answer661
viewssave in txt the result of the sql query in Firebird using Delphi
I need to save the result of a query inside the txt file by separating by a delimiter, I am extremely new to Delphi and Firebird, so any help is welcome code below: procedure…
-
1
votes2
answers46
viewsI’m having trouble closing a form( in the main form case) when I open a second form
I’ve tried that already: procedure TForm1.btnYesClick(Sender: TObject); begin Form4:=TForm4.Create(Application); Form4.ShowModal; Form1.Hide; end; And this tbm: procedure TForm1.btnYesClick(Sender:…
-
1
votes1
answer1711
viewsFDQUERY at runtime
I’m trying to use the FDQuery only at runtime. I’ve done a lot of research and tried several changes, but they all end with Access Violetion, so it’s suspicious that the component isn’t being…