Most voted "delphi-7" questions
Delphi 7 is a version of Delphi, when it was still owned by Borland/Codegear released in August 2002 and became the most widely used version of Delphi. The reason for the success of this IDE is its stability, speed, and low hardware requirements and remains widely used to this day. Supports Windows XP themes, and creating web applications with Intraweb.
Learn more…184 questions
Sort by count of
-
18
votes1
answer285
viewsWebservice Registering dll
I have the following code: CoInitialize(nil); try DM_Principal.pLarWS := CreateComObject(LarWS_TLB.CLASS_WS) as IWS; except WinExec( 'regasm LarWS.dll /tlb:LarWS.tlb',SW_HIDE); Screen.Cursor :=…
-
16
votes2
answers1619
viewsMulti-core Cpus - Why doesn’t my application use all the processor cores?
I have a doubt I can’t find a convincing answer. There is an application developed in Delphi 7, and in an extremely complex routine (it takes about 2 hours) we notice that it is only used for the…
-
12
votes2
answers7696
viewsGet the current date and time by internet in desktop application
I am implementing a system lock by date, and I need to get the current date of Brasilia for example, which would be the official time of Brazil, or the date in time zone -3. I believe that there are…
-
8
votes3
answers6333
views -
6
votes2
answers2883
views -
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
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
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…
-
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
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
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
votes3
answers596
viewsDelphi 7 apps in windows 8
I installed Delphi 7 on my Windows 7, but we know that by default Delphi 7 comes with Indy 9. It’s OK for me because I only use the idhttp.post and the get via http. The doubts would be: That…
-
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;…
-
4
votes1
answer2899
viewsCalculation of dates in Firebird
I am created a report to demonstrate the period of removal of employees, for that I need to calculate the days, months and years that the same stayed away, and I’m having a problem, in Firebird use…
-
4
votes2
answers2571
viewsHow to improve clientdataset query performance with many records?
When I am searching for all the clients table record, which are many, from a remote database and displaying on a Dbgrid, this process takes a lot of time. How do I improve the performance of…
-
4
votes1
answer2920
viewsRegular expression in Delphi 7
Guys, I’m new to programming on Delphi 7, and also regular expressions. Delphi 7 because in the company I’m working at, for other reasons, they have to use Delphi 7. I need to work with regular…
-
4
votes2
answers5857
viewsHow to break a string
I want to break a string in the old Delphi (pre-Avaidero). I would love to be able to do something like: function Quebra (input: String; separador: String) : Array of String var resultado: Array of…
delphi-7asked 9 years, 8 months ago Oralista de Sistemas 23,115 -
4
votes2
answers3931
viewsCreate dll in C# and use in Delphi 7
I need to create a dll in C# so I can use it in Delphi. I tried the following: I created a basic dll with a sum method, but when calling it in Delphi does not return anything, it would be like the…
-
4
votes2
answers160
viewsError adding BD information
When testing in the application where I migrated the BD from Firebird to Postgresql the following error occurs when trying to save an item in the database: Reviewing the code I could see that the…
-
3
votes2
answers1717
viewsHow do I convert multiple ". dfm" files that are in binary to text format?
I have in hand a legacy project that was developed initially in versions prior to Delphi 7, where it has a very large amount of Units(. pas) and forms(. dfm). I have a problem because like the files…
-
3
votes1
answer555
viewsGo through inputs with the same name and get all values
I have a web application in which I pass by input hidden a dynamic number of values across from a form to a action delphi. In the action, I wanted to know a way to get all the values with the same…
delphi-7asked 10 years, 7 months ago Jorge Luis 59 -
3
votes1
answer80
viewsTemporary file with Indy
Well, I’m trying to download a text file and get a Richedit to take the content from that file. But I don’t really know how to do it. I tried so: news :=…
delphi-7asked 10 years ago Gabriel Sales 1,257 -
3
votes1
answer210
viewsError in created function
Well, I did a job, but it’s not working. The purpose of this function is to download a file and when finished, return true. This is the function: function TForm1.BaixarArquivo(Sender: TObject;…
-
3
votes2
answers873
viewsRun executable independent program
I am making a Updater, but at certain times, I need to update the executable, which is not possible since it is in use. You would have a way to swap the executables and run the program afterwards.…
-
3
votes1
answer372
viewsIdhttp grab file size downloaded
Well, I would like to know how to find the file size that is being downloaded with the Idhttp component.
-
3
votes0
answers2982
viewsUsing Tvideoimage to capture webcam image
I’m using the component TvideoImage to capture image through the webcam, however I’m in trouble, was created an application that allows you to take photos of customers for registration, the…
-
3
votes1
answer294
viewsIs it possible to identify which open programs use BDE for connection? How do I?
I need to know, from a list of open programs that use BDE for database access, so I want to know if it’s possible and how do I. Att Luiz
-
3
votes0
answers339
viewsSave Email Outbox
I wonder if it is possible to save an email in the default email manager output box (Outlook, live mail, among others) using Indy10. Today I already have a function to send email, but calls the…
-
3
votes1
answer388
viewsConnect Postgresql to Delphi 7 through Zeoslib
I’m trying to connect Postgresql in Delphi 7, I found in a forum the idea of using Zeoslib to make this connection watching a video class I reached this setting: But even following step by step how…
-
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
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
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
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
votes1
answer343
viewsConsume DLL made in Delphi 7 in C#
I’m in need of creating a DLL in Delphi 7 and consume it in C#, when the parameters and return are int there are no problems, the problem occurs when I try to use string in return, put in Delphi a…
-
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
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…
-
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
votes0
answers175
viewsDelphi 7 intraweb 5.1 + Javascript
I’m having a problem with the Javascript do Delphi 7 + Google Chrome + qualquer outro navegador mais moderno. It practically does not work, I wonder if this is normal or if there is another way to…
-
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
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
votes0
answers327
viewsHow to convert String to Byte Array and vice versa?
I need to send an XML via post, but according to the service documentation, it is necessary that the data is sent "in bytes". So, I have the XML in question inside a Tstringlist. How to turn it into…
-
2
votes2
answers1187
viewsDelphi 7 Ado Dataset not in Edit or Insert mode
I’m doing a program on Delphi 7 with Access (I know it’s old stuff). But it’s making the mistake when I try to record in a very simple thing. tblPerguntas.Open; tblPerguntas.Insert;…
-
2
votes2
answers3135
viewsClientdataset 'Insufficient memory for this Operation'
I’m trying to give a active in a ClientDataSet and is returning the following error: edbclient Insufficient memory for this Operation Does anyone know how to solve?…
-
2
votes1
answer51
viewsWindows 8 sound click
When using the component TWebBrowser (which is from Internet Explorer) running on the Win7 platform, each time you browse is made a boring noise of click. So far I have not seen anything on forums…
-
2
votes1
answer1358
viewsSend a message to TV on the network
How do I send a message to a network-connected TV using Delphi7. Ex.: I have a system that controls attendance queues, I need to show the next call password on a TV that is connected on the network.…
-
2
votes1
answer1355
viewsHow to register a DLL in the system?
I have a DLL that I can’t register in the system. If I take the original DLL, it is registered, but if I take the one that was generated in the company machine, it records. I don’t know if I have to…