Questions tagged as 'delphi'

2
answers

What are the consequences of leaving the system without closing the tables?

What are the consequences of Exiting / Closing of a system without closing the database tables? Does it detract from anything in the database? Should I close the system tables or not? procedure TfrmTelaPrincipal.EncerraSistema; begin...
asked by 10.10.2018 / 21:49
1
answer

What is the difference between GetCurrentProcess and GetCurrentProcessID?

What is the difference between calling GetCurrentProcess and MainHandle defined below: var MainHandle: THandle; begin MainHandle := OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessID); end; In my application only...
asked by 05.01.2015 / 00:19
2
answers

If there is hint or warning the compiler cancels the compilation

I would like to compile an application and if it has some Hint or Warning , execution is suspended, giving rise to an error. Does anyone know if it's possible? Edit1: Warning's can be treated as errors. But is there anything that cou...
asked by 15.09.2017 / 04:44
1
answer

What are the advantages of using namespaces in Delphi?

From the 2009 release of Delphi (if I'm not mistaken) came the namespaces . I would like to know, in a simple example if possible that illustrates a case of advantage, what would be the advantages of namespaces in Delphi? Accou...
asked by 03.06.2015 / 15:02
1
answer

Edit Currency Delphi Firemonkey

I need to format an edit in the format 0,00 in FireMonkey , preferably using the ChangeTracking event. I tried using the following procedure that did not work. procedure FormatadorMoeda(pEdit: TEdit); var loStr: string; loDo...
asked by 11.11.2017 / 20:28
2
answers

Create TEdit Array at run time;

With the following code, I create an X quantity of edits: var x : integer; var2: integer; begin var2 := strtoint(edit2.Text); for x := 1 to var2 do begin ArrayEdit[x] := TEdit.Create(Self); ArrayEdit[x].Parent:= Self; Arr...
asked by 21.09.2015 / 19:30
1
answer

Am I loading this Music correctly with Bass.dll?

Based on the Bass documentation, I'm trying to load an ordinary ogg file, with the following code: var FFile : string; Music: HSAMPLE; ch: HCHANNEL; OpenDialog1 : TOpenDialog; begin Dynamic_Bass.Load_BASSDLL('Library/Bass.dll');...
asked by 20.02.2014 / 22:00
1
answer

Use "FieldByName" or the associated variable?

I have a doubt that maybe it's silly ... But it takes a little bit of peace. When I have a ClientDataset , a MemoryTable or a Query , how do I get the value of a field using FieldByName() or the variable associated w...
asked by 12.07.2016 / 03:40
1
answer

Search for words MEMO!

I have a MEMO COMPONENT and there are several phrases in each line. I need to search for words from this MEMO, for example: "BOLINHA". So far so good. The problem is, once it finds the word, I need it SAVE the LINE ALL that found the word....
asked by 08.03.2018 / 14:20
1
answer

Merge Excel cells via Delphi code

I'm updating an old Delphi system that uses a class to create an Excel file without the need to use OLE objects or have Excel installed. The Class works normally using the code that is just below. Now there is a need to add information in...
asked by 03.11.2015 / 22:43