Questions tagged as 'delphi-7'

1
answer

Differences in dynamic creation of an object

When I create an object dynamically, for example a form, I do this: Formulario := TFormulario.Create(nil); try Formulario.ShowModal; finally Formulario.Free; end; What's the difference in creating an object by passing th...
asked by 03.04.2014 / 22:22
2
answers

Find out if item is in array

How do I check if an item is in an array ? Ex: var Tabela : Array of String; begin Tabela[0] := 'Valor'; Tabela[1] := 'Value'; if Tabela[0] = 'Valor' then // do wathever; This would be the normal mode, but in a large array , it would tak...
asked by 18.10.2014 / 18:23
2
answers

How to break a string

I want to break a string in the old Delphi (Pre-Embarcadero). I would love to be able to do something like this: function Quebra (input: String; separador: String) : Array of String var resultado: Array of String begin resultado := input.S...
asked by 03.03.2015 / 14:49
2
answers

Create dll in C # and use in Delphi 7

I need to create a C # dll so I can use it in delphi. I've tried the following: I created a basic dll with a sum method, but calling it in delphi does not return anything, it would be like the created method did not exist. Below the c...
asked by 02.09.2016 / 15:52
1
answer

D7Zip file list

I'm using D7Zip ( link ) to extract files, and would like to get the entire list of files of the compressed file. In the documentation, I found this: with CreateInArchive(CLSID_CFormat7z) do begin OpenFile('c:\test.7z'); for i := 0 to N...
asked by 18.10.2014 / 19:32
2
answers

How to improve clientdataset query performance with many records?

When I'm looking for all records of the many clients table, from a remote database and displaying in a DBGrid, this process takes a long time. How do I improve the performance of the clientdataset query when many records are returned?     
asked by 12.03.2015 / 13:28
1
answer

Regular expression in delphi 7

I'm new to programming in Delphi 7, as well as regular expressions. Delphi 7 because in the company I'm working on, for other reasons, they have to use Delphi 7. I need to work with regular expressions, someone knows some way. From what I...
asked by 31.03.2015 / 03:10
1
answer

Calculating dates in firebird

I am creating a report to demonstrate the period of dismissal of employees, so I need to calculate the days, months and years that it has been removed, and I am having a problem, in Firebird I use something like datediff(day,dtini,dtfim) ,...
asked by 03.12.2014 / 12:36
2
answers

Declare const array of variant

When I need to use const of array I usually do this: var Campos : array [0..2,0..1] of string = (('campoa','AAA'), ('campob','BBB'), ('campo...
asked by 25.05.2018 / 17:20
2
answers

RadioButtons tabStop independent of Checked property

I have a set of RadioButtons, Edits and Labels inside a GroupBox, as in the image below: I would like the focus on Tab to focus on no RadioButton, but only on Edits, so I thought of changing the TabStop = False property of all...
asked by 11.12.2018 / 13:36