Questions tagged as 'delphi'

1
answer

How to do Json readings with multiple lists (DELPHI)?

I'm using the XSUPEROBJET examples to read Json below, but the examples use simple Json structures, and they work, but when I try to read the structures with multiple lists they do not work. I do not know what I'm doing wrong. My problem i...
asked by 12.09.2017 / 20:47
1
answer

Thread Pool Example in delphi

How do I make a pool of Thread , I need to execute a process that contains several records, but I need to send on demand, send 10 and as I release it, send more ... how can I do it? / p> I've set an example ... unit Unit1; inte...
asked by 13.06.2017 / 14:16
2
answers

Delphi + Firemonkey: dynamic parent in component created at runtime

I have a TForm that allows the system user to create components at runtime ( TButton , TRadioButton , TLabel , TPanel , among others). This functionality is working, but now there is a need for the user to creat...
asked by 09.06.2017 / 02:18
2
answers

How to countdown in a MessageBox

Usage Delphi XE7 , needed to countdown to MessageBox , Não button. For example a count of 10 sec next to the caption of the Não (10) button and so it decreases Não (9) . My alternative is to create the dialogue...
asked by 15.03.2017 / 19:56
1
answer

SQL Abstraction with FireDAC

I would like to know how best to work with SQL abstraction in a multi-banking system. For example: Firebird : SELECT SUBSTRING(nome FROM 5 FOR 8) FROM clientes Oracle : SELECT SUBSTR(nome,5,8) FROM clientes How to make the ap...
asked by 23.02.2017 / 18:01
1
answer

Export Date Type to openOffice / libreOffice Delphi

How can I export a Date type to openoffice / libreoffice when I need to export a String type I do it as follows. SheetOpenOffice.GetCellByPosition(vCont,vlinha).SetString(Q_Assoc.Fields[i].AsString); How can I do when the type that comes i...
asked by 18.04.2017 / 20:04
1
answer

Thread - How to call a form inside a Thread iTask?

In Delphi 10.2, I have a Form A that has a "Task-A" TTask that triggers a StoredProcedure in the Oracle database with Firedac. The StoredProcedure updates a result table that will be used by a form B which has a graph. I would like to call Form...
asked by 08.10.2017 / 05:54
1
answer

TByteDynArray for String Delphi 7

I have a method to convert a base64 file that returns a TByteDynArray, and I wanted to convert this TByteDynArray to String. I've tried it in some ways and it's not working. Error:     
asked by 11.04.2017 / 00:18
2
answers

Load Dynamic DLL (BemaFI32) in Delphi

I need help on how to load the BemaFI32.dll DLL dynamically in Delphi. My code looks like this: function _Bematech_FI_NumeroSerie(NumeroSerie: AnsiString): Integer; var xBematech_FI_NumeroSerie : function ( NumeroSerie: AnsiString...
asked by 08.08.2016 / 19:31
2
answers

Error '15 .0 'is not a valid floating point value when saving .xls

When trying to save an .xls file I'm having the following error:    '15 .0 'is not a valid floating point value I'm trying to save it like this: var HCalc : THojaCalc; vArquivo : String; vArquivo := 'C:/MinhaPasta/Arquivo.xls'; //dentr...
asked by 29.07.2016 / 14:00