Questions tagged as 'delphi'

1
answer

Invalid Pointer Operation - Delphi

I added a TClientDataSet (cdsTemp) to my Form screen, fine, and I deployed the fields of that TClientDataSet (cdsTemp) via code, like this: for i := 0 to (cdsAux.Fields.Count - 1) do cdsTemp.Fields.Add(cdsAux.Fields[i]); Notice...
asked by 21.02.2017 / 15:49
1
answer

How to synchronize auto increment keys between different databases in Firedac?

I'm looking at how auto-increment fields work in Firedac, using Delphi xE7, and I've been able to put together an example documentation that syncs two master-details tables with the correct key. The doubt arose when I wanted to mirror my Firebir...
asked by 28.12.2016 / 03:06
3
answers

Form Inheritance created in Runtime

Follow the code below: type TfObject = class(TForm) private procedure FormShow(Sender : TObject); procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); procedure FormClose(Sender: TObject; var Action: TClos...
asked by 15.02.2017 / 02:10
2
answers

Create login screen at run time

How to create within a ShowMessage or ShowModal a message where the user would have to enter the code and password, when leaving this ShowMessage code and password ) to make some criticism?     
asked by 12.12.2016 / 11:43
2
answers

Adding Hours higher 24 h

The sql statement returns me the times of type Time: | Horas | |20:52:00| |12:42:00| |09:00:00| |07:45:00| I would like to add up the total hours, but this way it is "zeroing" when it reaches 24 hours. procedure .... var vqtMaqLigada :...
asked by 29.11.2016 / 12:42
3
answers

Find a component by name

I have a String: var vMinhastring : string; begin vMinhastring := 'Edit1'; In my form I have a Tedit Compound with the name Edit1. How do I pass some value to my Edit1 by using the aVMinhastring as Component name? vMinhastring.text...
asked by 16.02.2017 / 16:34
1
answer

How to change the Port on the DataSnap Server through the INI file

I'm trying to set up an INI file to be able to access the client in order to be able to connect to the service through the port that it has determined. I get no problems at all, change in design mode, compile the project executes and start...
asked by 18.11.2016 / 13:06
1
answer

Sqlite Filter as error in return date with strftime function

Hello, I have the error in the following code SELECT L.*, C.DESCRICAO AS CATEGORIA , CASE WHEN L.TIPO_LANCAMENTOS = 'C' THEN 0 ELSE 1 END AS ICONE FROM LANCAMENTOS L JOIN CATEGORIAS C ON(C.CODIGO = L.COD_CATEGORIA) WHERE strftime('%m', L.DATA)...
asked by 17.11.2016 / 18:19
1
answer

Error DLL Connection FireDac with PostgreSQL

I'm having the DLL error not found when making a connection to PostgreSQL using the FireDAC component. Error: [FireDAC] [Phys] [PG] -314. Can not load vendor library [C: \ EXE \ libpq.dll]. Hint: check it in the PATH or application EXE dire...
asked by 17.11.2016 / 18:52
2
answers

Convert Header C / C ++ to Delphi

The intention is to consume a biometrics dll link I thought the best way would be to convert the headers that they provide (not a good idea). There are 3 headers: VrBio.h VTypes.h VConsts.h So far I've been able to convert (I thi...
asked by 25.11.2016 / 19:39