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
-
0
votes1
answer60
viewsSyntax error: then but then
I do not know what is happening, each line presents a different error. Foul then or passes then, in other cases lacking ; program Untitled; var peso:real; altura:real; idade:integer; begin…
-
0
votes1
answer1264
viewsSend application data to Firebase - Delphi
Hi, I have an app almost ready. But in the end she will need to put some data in 2 Tedits like name and email, when she clicks on Tbutton I want this information to be recorded in Firebase, which I…
-
0
votes0
answers174
views"Mainmenu Designer" in Runtime
In designer mode it is very easy to assemble the main menu of an application with Delphi, and I also know how to assemble a menu via code at Runtime. But what I’m willing to do is enable the end…
-
0
votes2
answers438
viewsHow to add event to an inherited form event in Delphi?
I explain, I have Fmodelo1 that has several standard functions, among them I have the creation of the Oncellclick event of a Dbgrid that is inherited to all the Formularios created from Fmodelo1,…
-
0
votes2
answers169
viewsChange Tcontrol Enabled activates click event alone
Fala galera, By changing the (Tbutton) button to disabled within an event, it triggers another event. procedure TFormulario.OnButtonExecutarOperacaoClick(Sender: TObject); begin //... //aqui está o…
-
0
votes2
answers639
viewsZipping files with the same name inside a folder
I would like to know if there is the possibility of the following scenario being done in Delhpi: I have a briefcase and inside it I have the following structure: foto.jpg foto.png imagem.jpg…
-
0
votes1
answer202
viewsDifficulty creating a Property for a CLASS
I am using DELPHI 7 trying to create a class with the following structure Type Tclasse_Envio_JSON = class(TThread) private fCampos: Array of Variant; fIdade : Integer; fNome : String[40]; function…
-
0
votes1
answer77
viewsHow to use Topindex in Delphi FMX?
Greetings. In Delphi VCL Listbox has property Topindex. And in Delphi FMX how to use this? Thanks in advance.
-
0
votes3
answers1538
viewsCount Number of Letters in a String - Delphi
I am creating a program where it will be necessary to show the amount of letters (A, b, C ..Z; a..z, à,â,ã) present in a String. I’m using the following code: function ContarLetras(Str: String):…
-
0
votes0
answers56
viewsError saving Trichedit Delphi content in Postgressql
I have to record formatted texts in the Postgresql database, when I load the Richedit shows the normal text, but when saved and I will look in the database the characters so:…
-
0
votes1
answer265
viewsHow to access mysql base from an external network
I have an application, on Android with Mysql database, that works perfectly within a specific network. But when trying to access this same base on an external network I get the following message:…
-
0
votes1
answer187
viewsWhat is the safe way to work with Tricheedit Database?
I’m asking this question because for days I’m having a huge pain in the ass with this junk from Richedit, time he saves right time he saves a lot of ??????????????????????? at the base... I know it…
-
0
votes1
answer362
viewsDoubt with handling of Treeview and delimited TXT files
I’m having a little difficulty with Delphi, I’m creating a very basic small application for me to manage accounts, games, emails etc. and I decided to use the Treeview scheme as a base for listing…
-
0
votes2
answers770
viewsCheck subprocess in implementation
When my application starts I need to check if a third party program is running, if not, I need to start it. The problem is that the program made in Java and when it is running it runs within Java…
-
0
votes1
answer581
viewsIs it possible to obtain the SIM number in firemonkey(Delphi)?
Is it possible to get the mobile number (SIM number) in the Firemonkey App? I’ve been searching on forums for a few hours and have not found any example the library that allows you to get the mobile…
-
0
votes1
answer111
viewsHow to capture windows status (suspended/hibernating) via Delphi code
I would like to check windows status (suspended/hibernating) before performing an action. Example if suspenso=true then //executa algo Thanks in advance.…
delphiasked 6 years, 5 months ago Felipe Soares 7 -
0
votes1
answer628
viewsBreak line automatically on export to Excel by Delphi
I’m doing an export to Excel using Delphi. At a certain point, a text ends up being larger than the size of the cell, "popping" its contents out of the cell when opening the file . XLSX generated. I…
-
0
votes0
answers164
viewsError placing a component in the Delphi Berlin form
I have the sources of an old chess component in Delphi. I migrated it to Berlin. After compiling and installing everything ok. However, one of the components presents problems when I insert it into…
-
0
votes1
answer63
viewsTedit error / Tdbedit
I have a little problem. When I use the TEdit in my form, the keys I type are captured by the text box (which is normal!), however when I use one TDBEdit, keys are not captured by the text box.…
-
0
votes1
answer550
viewsStore image(jpg) in a variable - Delphi
I have a question about storing an image in a variable in Delphi. I’m using a function that saves as an image a signature collected in a digital signature collector (Step Over - naturaSign).…
delphiasked 6 years, 4 months ago Xtronalt29 13 -
0
votes1
answer343
viewsDelphi JSON Encode with Tsslhttpcli (Overbyte ICS)
I am using the Tsslhttpcli component of Overbyte www.overbyte.I and I’m having problems with formatting my return json, with special characters, I’m consuming the google’s Geolocation api, see…
-
0
votes1
answer142
viewsHow to detect current Left and Top of Form when dragging (in Delphi)?
I need to detect the Left and Top value of the Form (in real time) by dragging and displaying the values in Spinedits (Sedtx and Sedty). I am using the code below, but without success: private {…
-
0
votes1
answer258
viewsCreate Powerpoint presentation from Delphi (Oleobject)
I’m trying to generate a Powerpoint presentation from a Memo, I found a code on the internet that uses Oleobject, but it’s not working. What is incorrect? (I use Delphi 10.2 Tokyo) uses…
-
0
votes1
answer477
viewsMaster and Detail in Delphi, with Schemaadapter, only recorded the second time onwards
I am using Delphi 10.1, Firebird 2.5 with Firedac. I have 3 Fdquery, all with Cachedupdates = true, being 1 MASTER, and 2 Detail. In the bd, the FK points to the ID of the master table. In the…
-
0
votes1
answer1307
viewsError opening/creating Firebird database
I have a problem with Firebird. I installed Delphi and Firebird, but when I try to open the base it is a mistake. Trying to open by ibexpert gives the following error unsuccessful execution caused…
-
0
votes0
answers292
viewsCreate Tzconneciton in run time
Good afternoon I’m using Delphi 7 with ZEOS. I need to create a connection in RUN TIME. I’m trying to use the following code Var Connection : TZConnection; begin Connection:=…
-
0
votes3
answers1024
viewsHandling of sql temporary tables in Delphi
Good afternoon I create in Delphi a Sql temporary table, that is, it does not exist physically. I can even record data to it, but I can’t put the information in a dbgrid: 1) I believe the table so:…
-
0
votes2
answers146
viewsAssignment of value to variable
I have two global variables, which we’ll call To and B, when I make the following assignment: A:= 5; B:= A; Every time I change the value of To, the value of B also changes. If I do A:= 10 B becomes…
-
0
votes2
answers195
viewsDelphi Seattle Problems with Sockets
[Delphi Seattle] I have a Unit that has uses in Sockets (from a source that was in Delphi XE2), uses does not recognize.. does anyone know how to proceed? Obs: Ai without these uses I have more…
-
0
votes1
answer1447
viewsCount the total of decimals in Delphi
I need to count the number of decimals in Delphi (10.1) in a string, I will use Edit, validating monetary values when typing, before inserting into Edit. I can validate if it is a valid Currency,…
-
0
votes1
answer171
viewsError uploading with Idhttp android firemonkey
I’m using this code to make the testing upload files to my server. filing cabinet html where I select the file. <html> <body> <form method="post" action="upload.php"…
-
0
votes1
answer102
viewsStopwatch of Idle Time
I have a Label component that shows the number of files in a folder. While downloading multiple files the number displayed by Tlabel changes (as the files in the folder). How do I stop when label…
-
0
votes0
answers67
viewsSimple National The Controltovalidate Property of ''Regularexpressionvalidator1'' cannot be Blank
I am developing a query in Simple National, but when giving an Httppost on the site http://www8.receita.fazenda.gov.br/simplesnacional/aplicacoes/atbhe/consultaoptantes.app/consultaropcao.aspx gives…
-
0
votes1
answer147
viewsPopulated sqlite when install apk
When I compile the app directly on mobile Sqlite comes empty (exactly as is the file in the path specified for DB) but when I use . apk generated in the same compilation he populates the DB…
-
0
votes1
answer528
viewsLock registry (lock) in SQL Server
Using SQL Server and Delphi, I need to control so that in a certain database table two changes cannot be made at the same time in the same record, I cannot start the update if there is already…
-
0
votes1
answer317
viewsXML Mapping Tool Delphi Tokyo
I would like to know the correct way to map an . XML by Delphi Tokyo with xml Mapping tool and read in ClientDataSet. Using the XML Mapping Tool with the Delphi 7 I can do the mapping and read the…
-
0
votes1
answer434
viewsUse the values of a variable array of a procedure in the main algorithm routine
program nome_jogadores_futebol_basquete_volei; {$APPTYPE CONSOLE} uses SysUtils; procedure futebol; var i: integer; jogador: array[1..11] of string; begin for i := 1 to 11 do begin writeln('Digite o…
-
0
votes1
answer74
viewsHow to use the Tbitmap32 (Delphi) type in a DLL called in C++?
Hello! I need to create a DLL in Delphi, to use it in a program written in C++. This DLL shall handle an image (obtained by means of path passed as a function parameter). However, I’m having trouble…
-
0
votes2
answers775
viewsEdge on a Tedit
I need to put an edge on the Tedit of a record, when this field is required and is empty at the time of saving the record. I have already put the edge, but I’m not able to disable it when the field…
delphiasked 6 years, 5 months ago Ariel Inacio Correa 513 -
0
votes2
answers920
viewsHow to allow only numbers in an Edit?
I have the following code in my role IntegerKeyDown that is in formpai If not (CharInSet(KeyChar,['0'..'9']))then begin Key:=0; KeyChar:= 0; end; I call him in some Edits of the Sons. Works…
-
0
votes1
answer56
viewsFMX and Styles - Put a unique Style for the whole project
Good afternoon.. In a VCL project we select a Style and it stays in the whole project. I would like to know if it is possible to use a style throughout the FMX project. I know if putting a styleBook…
-
0
votes0
answers184
viewsProblems running Mysql function using Delphi Firedac 10.1
In a Mysql database I have a function (not Procedure) fully functional, I can access normally within heidisql. At Delphi, I’ll tell you what function ExecutarFuncaoSQL(sFuncao: string; aParams:…
-
0
votes2
answers479
viewsDelphi Twebbrowser Validate Recaptcha
I am accessing a site to search for some information, I am using Delphi with the twebbrower component, but has a validation with recaptcha, someone knows me how to validate the recaptcha via…
-
0
votes0
answers46
viewsSSL error in Delphi
I’m getting the bug ssl3_get_record wrong version number when I own the property Connected of ADOConnection for true. Does anyone know how to solve?…
-
0
votes1
answer53
viewsUse Indexfieldnames in FMX
I’m trying to use the IndexFieldNames inside the FMX to organize the data according to the column but when calling the method HeaderClick, I can’t get the Column name and only its content. Using…
-
0
votes1
answer417
viewsFiredac - Datasnap + Fdmemtable + fkInternalCalc
I’m facing problems with fields fkInternalCalc when migrating from TClientDataSet for TFDMemtable. We use these fields for data manipulation in memory, but they will not be persisted, this is very…
-
0
votes1
answer132
viewsGetting String via Delphi and PHP
Gentlemen, good night, sir! I’ve had a problem for three days without a solution. The code below, I use to get a string as a form of authentication. The variable sPOST presents the string…
-
0
votes1
answer1130
viewsHow to use Tformatsettings in Delphi 10 Tokyo?
How do I set regional date, time, decimal separator, mile separator settings in Delphi 10 Tokyo? Previously, in Delphi 7, there were global system variables. In newer versions they created the…
-
0
votes1
answer232
viewsReturn a Result set from a Mysql storeProcedure
Good afternoon. I have the following storedprocedure in Mysql..: DELIMITER $$ CREATE DEFINER=`ricardo`@`%` PROCEDURE `teste2`() BEGIN Select * from Tabela; END As I call this storedprocedure by…
-
0
votes0
answers603
viewsHow do I know if a folder exists with Idftp Delphi?
I need to know if a folder exists in ftp I’m using the function below, but error: --------------------------- Debugger Exception Notification --------------------------- Project perfil.exe raised…