Questions tagged as 'delphi'

1
answer

How to select TEdit field text in Delphi 10

I have a very basic problem and I do not discover the cause ... I need the text from within a TEdit to be selected integer when the field receives focus. At the time of Delphi 7 with VCL I only made TEdit(Sender).SelLength := Length(TEdit(Sen...
asked by 19.12.2017 / 21:19
1
answer

Why is the style not being applied?

I have the following program: program Paker; {$APPTYPE GUI} uses Vcl.Forms, Classes, SysUtils, Vcl.StdCtrls; var FForm : TForm; FModeComb : TComboBox; FBtn : TButton; begin Application.Initialize; Application.CreateFo...
asked by 17.05.2014 / 20:09
1
answer

Delphi - DataSnap - Rest - TServerMethods1

I'm running some Datasnap tests with REST and json. In the ServerMethods unit, which Delphi itself creates, has the function ReverseString , but well, how do I know who sent it? I would like to keep a log of information from...
asked by 07.06.2017 / 16:39
2
answers

Concatenate Matrix x Vectors

I have the following values in a StringList: 1111,2222 3333,4444 I have another String list with values 7777,8888 9999,0000 I need to add the values of the second stringlist, concatenating in the same position in sequence of the fi...
asked by 07.04.2017 / 03:18
1
answer

How to improve the performance of a key search?

Given that TDictionary exposes only ways to retrieve value through the key, I have the following algorithm to fetch a key from its value: var Table: TDictionary<Int64, Extended>; function KeyOf(Value: Extended): Int64; inline...
asked by 25.06.2016 / 02:32
2
answers

Text Editor with RTF support

I need to find a text editor with RTF support. Purpose: Write and format in html and save in RTF, then get RTF and edit in html. I searched the documentation from various publishers to see if there was something of a kind and could not f...
asked by 05.10.2015 / 22:38
1
answer

Is it possible to remove the bearing from a TWebBrowser?

Is it possible to remove the vertical and horizontal bearing from a TWebBrowser ? I searched in various places on the internet, however, I did not find a valid answer, all examples were false!     
asked by 05.09.2015 / 21:23
2
answers

Why delphi / pascal constructors can not be private as in C ++

Is there any reason why I can not leave a delphi constructor private?     
asked by 09.04.2016 / 19:15
2
answers

Convert the SQL syntax of the Firebird database to Postgres database at runtime

I have a system developed in Delphi 7 already stable using the Firebird database, and some clients have requested that they can use Postgres as a database on that same system. As in some SELECT'S, my system uses some reserved Firebird words,...
asked by 24.11.2015 / 21:08
1
answer

Problem Nextval Postgres Delphi

I'm doing an application, in which I need to increment a sequence and check if that value has already been used in another table, because if it has already been I should ignore it and generate a new value for sequence until you find a unique...
asked by 04.03.2015 / 19:33