Questions tagged [delphi-10.3-rio]

Delphi 10.3 Rio is a specific version of Delphi released in November 2018.

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

This version of Delphi brings several enhancements to the core Delphi pascal language, including inline variable declarations and type inference, as well as RTL performance improvements, and changes to Delphi's ABIs for better C++ interoperability across all platforms. It also sports several IDE UI redesigns, better High-DPI support to the VCL, support for iOS 12 and Android API level 26+, and begins Embarcadero's push to phase out its ARC memory management model for TObject classes, starting with the Linux 64-bit compiler.

Always use the tag alongside this tag.

References

546 questions
1
vote
0 answers

Connect FireDAC to SQL Server database

I'm currently trying to connect FireDac to a local SQL Server database but I can't seem to find the MSSQL driver ID in FDConnection1. I'm using the Community Edition of Delphi.
Ash
  • 59
  • 6
1
vote
1 answer

How to enable or disable an item in aTListView with dynamic appearance?

I have a TListView with dynamic appearance, there are some items like text and images. I would like in runtime, disable or enable these items, depending on the situation. I didn't find a reference on the internet until that moment. Thanks for the…
1
vote
1 answer

Can the editor highlight/mark local variables in contrast to global variables?

Is there an option in the IDE (or a free plug-in/tool) to mark local variables in a different color/font in contrast to global variables? If NO, how do you handle this? By var-name?
Wolfgang Bures
  • 509
  • 4
  • 12
1
vote
1 answer

Indy to use Windows CertStore?

Is there any way that Indy can use a cert from the windows store? I currently use TidServerIOHandlerSSLOpenSSL but dont see an option there. Any tricks to achieve this?
Wolfgang Bures
  • 509
  • 4
  • 12
1
vote
1 answer

Draw a Line between two coordinates in a TMapView (Delphi FMX)

I have a TMapView on my Form. The TMapView works fine so far but I want to add the possibility to draw a Line between two coordinates on the TMapView. How can I do that? I tried the following which does not work in any way: var A,B:…
qGold
  • 341
  • 2
  • 14
1
vote
1 answer

How to get range of OnData indexes from Virtual Listview

I'm dealing with large text files (bigger than 100MB). I'm using a TListView (OwnerData=True). ListView's OnData event gives me required items one by one. procedure TForm1.ListView1Data(Sender: TObject; Item: TListItem); begin …
Xel Naga
  • 826
  • 11
  • 28
1
vote
2 answers

Fast way to get total line number of a large file

I'm dealing with large text files (bigger than 100MB). I need the total number of lines as fast as possible. I'm currently using the code below (update: added try-finally): var SR: TStreamReader; totallines: int64; str: string; begin …
Xel Naga
  • 826
  • 11
  • 28
1
vote
0 answers

Migrating a C# code (string) to Delphi 10

I'm trying to rewrite a code from C# based on a DLL (maybe also from C#, I don't have source/doc from it), in Delphi 10.3. But I'm facing some problems around a string field... Here is the working code from C#: [DllImport("methods.dll", CharSet =…
peaga_br
  • 11
  • 2
1
vote
0 answers

migration from ADODB to FireDac component

I have Delphi application that connected to SQL server using ADODB component like (TAdoQuery , TADOStoredProcedure , TADOConnection .....) Now am trying to migrating from ADODB Connection to FireDac in delphi 10.3 Rio , but how I can passing…
mamon
  • 11
  • 4
1
vote
1 answer

How can I populate a combobox from a SQL Server database server in Delphi?

First of all, I'm new to Delphi, and I checked all the relevant threads on here, but nothing seems to be working. I'm just trying to fill a TComboBox with values of a column from a SQL Server database. So basically, I have a VCL form and a…
1
vote
2 answers

Write Unicode (UTF-8) text file

How can I write a Unicode text file in Delphi? Currently I simply use AssignFile, RewriteFile, and Writeln, but this does not write Unicode characters.
1
vote
1 answer

How to display list text with other controls on same line?

As an exercise for myself, I'm trying to recreate the To-Do app from the (fascinating) todomvc.com web site. The UI looks like this: A user writes a To-Do item in an Edit box control (above the crossed out "buy milk") and presses Enter. To-Do items…
Al C
  • 5,175
  • 6
  • 44
  • 74
1
vote
1 answer

Perform Task at a given interval using TTask - Sleep alternative

I need to perform a task every x seconds and I can accomplish that goal using the code below: var task: ITask; begin task := TTask.Create( procedure() begin //infinite loop while 1 = 1 do begin //time…
Marcoscdoni
  • 955
  • 2
  • 11
  • 31
1
vote
1 answer

Error when casting Nil TJSONValue using 'as' operator

I have stumbeled accross an error that cought me totally by surprise, so I wanted to check with you if this makes sense... Item := Songs.Items[Index] as TJSONObject; ThisTrack := Item.Values['track'] as TJSONObject; if (Assigned(ThisTrack)) then…
Wolfgang Bures
  • 509
  • 4
  • 12
1
vote
1 answer

Parsing XML file with IXMLDocument in Delphi

In Delphi 10 Rio, I use IXMLDocument to parse an XML file.
GB74
  • 11
  • 2