Questions tagged as 'delphi'

2
answers

Doubt using FireDac with TClienteDatSet

I am using these components but am having the following error when trying to open the ClientDataSet. Generate error:    Access violation at address 50FCDC6F in module 'dsnap230.bpl'. Read of   address 00000000.       TDFConnection for con...
asked by 19.02.2016 / 12:10
2
answers

Remove characters from a text

Hello, I need to make an application that inside a notepad (which I did) remove data in a range. What do I need now and how do I remove the email (in parentheses) from the phrase. Example:    From: João de Almeida < [email protected]...
asked by 20.04.2015 / 19:36
1
answer

Delphi 7 with Indy 9 runs on Windows 8?

Many good people like me who just use the idhttp.get with http in the Delphi 7 standard indy9, which is simple and does not require dll ... does it run on win8? Because I've already researched and only see people saying upgrade to 10 but I...
asked by 18.04.2015 / 10:16
2
answers

Remove penultimate character from a string

I have an application that clicks on labels a edit gets its caption as follows: Edit1.Text := Edit1.Text + TLabel(Sender).caption+ ' '; After that I click ok, and this information changes to memo . But the problem...
asked by 10.12.2015 / 14:44
2
answers

Delphi Two methods for OnMessage

In Delphi, is it possible to set two methods for the event OnMessage of TApplication ? Detail: Both should work simultaneously. Eg: TApplication.OnMessage := MetodoA(); TApplication.OnMessage := MetodoB();     
asked by 05.11.2018 / 13:57
1
answer

Read lines from a Txt file and play in different Edits [closed]

I have the following structure of .Txt : --------DEF-------- 3 25 3 2 46 ------PROF1---------- 0-20 cm 100% 100% 100% 10% 33% 0% 100% 0% Outro I would like that when the user chooses the option of .Txt in comboBox , that...
asked by 23.03.2016 / 14:10
2
answers

How to Open / Close Multiple Forms from a Main Form

I have a FormPrincipal which has a Tmenu with Tactionlist , and from this form I want to call several other Forms, according to the menu items. In the main form, I have a Panel and I want the other forms to open ins...
asked by 17.09.2017 / 23:47
2
answers

Error comparing strings in Delphi

I'm using the code: conexao.First; while not conexao.Eof do begin if (conexao.FieldValues['complex'] = '02' and conexao.FieldValues['financ'] = '04') then total24:= total24 + conexao.FieldValues['val_tot']; conexao.Next; end; In...
asked by 21.10.2018 / 15:27
3
answers

Focus item in Listbox with Delphi

The following code works only if you enter the full string, I would like to modify the code to also focus on the listbox when some of the text is typed autocomplete style procedure Tform1.Edit1Change(Sender: TObject); var i: Integer; begin i :...
asked by 12.10.2018 / 23:24
1
answer

C ++ Method for Delphi

Hello, good morning, everyone. Please, I would like to know what the C ++ method would look like below in Delphi. Follows: bool hook(void* old_function, void* new_function) { return eat_hook(old_function, new_function) && iat_h...
asked by 18.02.2016 / 13:20