Questions tagged [delphi-10.2-tokyo]

Delphi 10.2 Tokyo is a specific version of Delphi released in March 2017.

Delphi 10.2 Tokyo supports development of applications covering 32-bit and 64-bit, 32-bit, server 64-bit, 32-bit and 64-bit, and 32-bit. Windows applications may be built using either the framework or the (FMX) framework, whereas the Mac and mobile platforms are built under the Firemonkey framework only.

Always use the tag alongside this tag.

References

558 questions
0
votes
0 answers

Ini files and Android

I have an app that I am developing for Android which contains 4 Tedit objects. The user has to enter specific data into the Tedits and this is then processed with a Tbutton onclick event. What I would like to be able to do, is save the last user…
WobblyBob
  • 109
  • 1
  • 12
0
votes
2 answers

Dynamically create submenu

I have a TMainMenu with a menu item called mnuWindows. I wish to create submenu items dynamically. I thought this code might do it but it doesn't work: var mnuitm: TMenuItem; mnuitm:=TMenuItem.Create(nil); mnuitm.Text:='some…
Duns
  • 418
  • 2
  • 15
0
votes
1 answer

My Time Field in my DBGrid is showing the date and time instead of time only - delphi

I have a field in my database called 'Times', it's a date/time format and its format is set to 'short time'. In my database the date does not show, nor is it being add to the database as I know. It is only the time value. My DBGrid shows the time…
user8660795
0
votes
0 answers

Setting process exit code from GUI application

I'm writing a small integration testing framework to a suite of application written in Delphi 10.2 (win32 target). My idea was to detect a specific command-lien parameter and, if it is present, run the test, printing the result to STDOUT and the…
Stephane
  • 3,173
  • 3
  • 29
  • 42
0
votes
0 answers

FireDac connection does not perform commit

I am trying to convert a project from Delphi XE8 to Delphi 10.2 Tokyo, having some trouble with autocommit: Building with XE8: every time a 'Post' is performed, the update is committed to the DB automatically. Building with 10.2: the updates remain…
0
votes
1 answer

FMX TMemo Doesn't Show Blank Line

I'm working with Delphi 10.2 (Tokyo). The FMX TMemo does not render blank lines. For instance, copy the following and paste it onto the form of a FMX application (Win32 Target). object Memo1: TMemo Lines.Strings = ( 'One' '' …
James L.
  • 9,384
  • 5
  • 38
  • 77
0
votes
1 answer

How do I fix this SQL update statement as it returns a syntax error in delphi?

Whenever I try to run this code it returns a syntax error, I have followed a few formats from what was posted here, but nothing I do seems to work. How can I fix this? with adoQuerysupplier do begin …
user8660795
0
votes
1 answer

ListView Filter not working after fetching data from datasnap server

I have an application made in Delphi Seattle, and i migrated to Delphi Tokyo. But my searches in ListView are no longer working properly. On a first use, it works correctly, i filter a record and edit it. I send the data to a datasnap server and…
Tallys Ferrante
  • 173
  • 1
  • 13
0
votes
1 answer

Delphi RESTClient parsing JSON

I use TRESTClient, TRESTRequest, FRESTResponse and RESTResponseDataSetAdapter like in RESTDebugger (Delphi Tokyo) and it works fine but for one JSONValue the webservice send me some HTML mix and It do not display the right thing in my TFDMemTable. I…
Hugues Van Landeghem
  • 6,755
  • 3
  • 34
  • 59
0
votes
1 answer

How to know which Form is opened and how to close it?

I have a TAction.OnExecute event handler triggered from my main form, FormPrincipal, which opens other Forms. procedure TFormPrincipal.AbreFormBancoExecute(Sender: TObject); begin Formbanco := Tformbanco.Create(self); …
JRG
  • 513
  • 9
  • 23
0
votes
1 answer

Cannot add TMS async components to win32 firemonkey program

I have a firemonkey app targeted only at win32. I want to add the tms async serial communications component. When I do so and try to build it gets upset trying to compile the tms source code. It is non-trivial to change the tms source code. Where…
rebible
  • 99
  • 6
0
votes
2 answers

How to stop Final Builder 8 from destroying the rc file using Delphi 10.2 Tokyo

When I try to build some DPKs in IDE it compiles properly and generates a appropriate BPLs, but when I try to do it with the command line, using Delphi 10.2 Tokyo then I'm getting errors like: ... .rc(14) : error RC2132 : expected VALUE, BLOCK, or…
Gilmor
  • 439
  • 1
  • 3
  • 11
0
votes
1 answer

Adding Items With Multiple Lines in ListView

I want to show a list with TListView, generated with data out of my database. But my code is only showing one item in the list. It should look like a short List with Text like Address, Name1, Name1 just like on this picture: The Code for the view…
J1MAV1GN0N
  • 33
  • 2
  • 6
0
votes
1 answer

DBAdvGrid RowHeights - alter all rows except 1

I'm using the following code in the CustomCellDraw event of DBAdvGrid(TMS) to increase row height. procedure TForm1.DBAdvGrid1CustomCellDraw(Sender: TObject; Canvas: TCanvas; ACol, ARow: Integer; AState: TGridDrawState; ARect: TRect; Printing:…
t1f
  • 3,021
  • 3
  • 31
  • 61
0
votes
1 answer

firemonkey location sensor status dont change

my app is showing the location long and lat and it is working well but when i have to detect the location sensor status like on , of , working , error,... it have some problem my idea was this code : Case LocationSensor1.Sensor.State of …
peiman F.
  • 1,648
  • 1
  • 19
  • 42