Questions tagged as 'delphi'

1
answer

Deserialization of Object JSON morMot

I am trying to deserialize a JSON object with an objectlist, following the examples from the mormot forum does not work, can anyone help me: Memo.Text := '{"CODIGO":"01","NOME":"CIDO","TELEFONES":[{"DDD":"18","NUMERO":"996237140"},{"DDD":"18",...
asked by 29.11.2016 / 14:05
2
answers

With delphi, how can I disable the ESC key for all applications?

I need to disable esc for all programs using Delphi. Probably form has to be always active and I disable the key in a way similar to the example below. My code so far: procedure TForm2.FormKeyDown(Sender: TObject; var Key:...
asked by 10.05.2014 / 19:52
2
answers

Run a java Jar from Delphi

I would like to know if there is a way to run a jar through Delphi and give commands to it as if it were a command line. The truth is that I have a java application that no longer has access to the code and it is limited to two commands via c...
asked by 13.04.2015 / 13:47
1
answer

Differences in dynamic creation of an object

When I create an object dynamically, for example a form, I do this: Formulario := TFormulario.Create(nil); try Formulario.ShowModal; finally Formulario.Free; end; What's the difference in creating an object by passing th...
asked by 03.04.2014 / 22:22
2
answers

How to check if a directory exists, if there is a prompt to enter a new directory? I'm using innosetup to create an installer

I need to check if the C: \ SISAUTO, C: \ BASESISAUTO folder exists. If there are folders, create a new one for example C: \ SISAUTO2, C: \ BASESISAUTO2 Follow the code below. ; Script generated by the Inno Setup Script Wizard. ; SEE THE DO...
asked by 28.02.2017 / 15:41
2
answers

Find out if item is in array

How do I check if an item is in an array ? Ex: var Tabela : Array of String; begin Tabela[0] := 'Valor'; Tabela[1] := 'Value'; if Tabela[0] = 'Valor' then // do wathever; This would be the normal mode, but in a large array , it would tak...
asked by 18.10.2014 / 18:23
2
answers

Reading txt file with multiple columns to insert into TListView

I have the following function: var Colunas : TStringlist; Item: TListItem; begin Colunas := TStringlist.Create; Colunas.Text := StringReplace('00:46:30@21/08/2014@Carlos dos Santos@São Paulo', '@',Char(13)+Char(10),[rfReplace...
asked by 29.08.2014 / 17:21
4
answers

Path is file or directory (folder)

How do I check if a path points to a file or folder? I have no idea how to do it. A folder or directory path would be: C:\Program Files\Embarcadero\RAD Studio.0\bin A file: C:\Program Files\Embarcadero\RAD Studio.0\bin\bds.exe     
asked by 28.10.2014 / 23:43
2
answers

Delphi Berlin slow after migrating from a Seattle Delphi project

I migrated a project made in Delphi Seattle to Delphi Berlin and it was impossible to work on it since autocomplete started to take about 20 seconds to show some suggestion. How to solve this?     
asked by 14.12.2016 / 20:01
2
answers

Access the components of the children of a TObject

Ohayou Developers, I would like to know how to access the children of an object, for example. I have a TRectangle and a TLabel with your child. I would need to access the TLabel to change, for example, your text, color etc. What would be the com...
asked by 08.11.2017 / 19:55