Questions tagged as 'delphi'

1
answer

StringReplace x Array

I have the following code: Nomes: array[1..10] of string=('Tadeu','Joao','Maria','Ana','Juca','leticia'); StringReplace(Edit1.Text, Nomes, 'Bloqueado', [rfReplaceAll]); I need to make the StringReplace look for any name inside the array a...
asked by 20.09.2014 / 03:59
1
answer

Prevent character typing, if the monetary value is incorrect in delphi

My goal, using Delphi 10.1, is to compare the typed text 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 middle of the text existing ") would still" be "a va...
asked by 15.07.2018 / 03:19
1
answer

How to get structure of the hierarchy of a delphi component?

Personal I'm trying to refine my error log and an idea came up for me. Using a ApplicationEvents component I have a routine that writes the error log, in it I get the error in E.Message , and the Sender component that generate...
asked by 09.05.2018 / 19:06
1
answer

Counter in FastReport adds more than once, how to solve?

I have a very complex report on fastreport on a given page the structure is a MasterData - > DetailData and within this Detail you have the required components, everything works 100%, it happens that in a fxtMemo I need to put the number of t...
asked by 05.04.2018 / 17:43
1
answer

How to search using regular expression in delphi 7 [duplicate]

In delphi 7 when opening the search dialog box: CTRL + F and selecting the option: Regular Expressions would like to find anything starting with the word GPField and ending with IsNull For example, I have the following code: if GPFiel...
asked by 06.06.2018 / 14:51
1
answer

Clone DataSet (TZQuery) in Delphi 7

Hello, I have a delphi application that does the following: It makes a query in the PostGreSQL database using the Zeos TZQuery / TZConnection components, then it traverses the result by writing it to another table, that table with columns identic...
asked by 04.07.2018 / 18:43
1
answer

How to use pointers in delphi?

I have the following code snippet: if TMenuItem(fmPrincipal.FindComponent('teste')) <> nil then if TMenuItem(fmPrincipal.FindComponent('teste')).Visible then ... I look for a menu item and check if it is visible. But my c...
asked by 18.07.2018 / 22:19
1
answer

HTML Link in RichEdit

It would be possible to have a hyperlink in a word or phrase in a RichEdit , and when you hover over that link the cursor stays as crHandPoint and when you click, with a specific website. For example: Clicking here will open the...
asked by 04.04.2018 / 19:10
2
answers

Problem when calculating average of a grid with empty numbers

I have a StringGrid1 that fill in the data and from that I calculate the total and average. In figure 1, it shows working correctly. However I may not want to put a number in one of the cells, which causes the image error 2. The code...
asked by 31.01.2018 / 01:07
2
answers

How to destroy activex component that is generating error in delphi?

I'm using an Adobe PDF ActiveX component (TAcroPDF), it works fine, it happens when you close the form with the proper Release lines; FreeAndNil (TForm); in OnClose, it still generates an error when closing, it seems to me that it does not relea...
asked by 06.03.2018 / 15:52