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
1 answer

What special handling do we need if we are trying to execute GET in TIdHTTP with Chinese words as parameters

I'm trying to GET the following URL in Delphi using TIdHTTO but it fails:…
Ago
  • 755
  • 7
  • 28
0
votes
0 answers

TSendMail.Execute Returns True Without Sending

If I understand correctly, TSendMail is supposed to use my installed email client. If I execute it on my virtual machine, it returns "true" and gives me the expected message that I need to install an email program. However, if I run the program on…
Max Williams
  • 821
  • 1
  • 7
  • 13
0
votes
1 answer

Delphi Tokyo IOS App Development for arm64e

I was wondering if anyone can give me a definitive answer on this. I have been battling for weeks now to build a small, simple app for personal use on my iPhone. I have managed to get it to work on my iPhone 6S, but I cannot get it onto my iPhone…
Andrew
  • 47
  • 7
0
votes
0 answers

Delphi - Calling RenameFile results in False; appears to be due to the (.pdf) file in use

I have code that calls RenameFile(). The Result passed back is sometimes False; this appears to happen when the (.pdf) file is in use. I have seen what appears to be a 'standard' message loop in everyday programs where, if an operation can not be…
Andrew W
  • 67
  • 1
  • 4
0
votes
1 answer

How to retrieve the value of Environment Variables using OpenTools API?

I added some new environment variables in the IDE setup: Tools > Options > Environment Options > Environment Variables > User Overrides Those are just some paths like: $(MYPROJ_ROOT)\Source. How can I retrieve one of them using the OpenTools…
Ali Dehban
  • 88
  • 1
  • 8
0
votes
1 answer

Multi-platform support for binary data files with Extended type

I currently have the following code to support 10-bytes Extended values saved in binary files from Win32, and loading these in other platforms. However, for Android (which is ARM and not INTEL), I need some code to do conversion to and from 10-bytes…
HeartWare
  • 7,464
  • 2
  • 26
  • 30
0
votes
2 answers

How to do extended JSON $date right in Delphi, or is it a bug about timezones and UTC in System.JSON?

I'm trying to parse extended JSON using TJSONObjectBuilder...AddPairs(). My JSON contains a $date (I need it in Utc for MongoDB). But somehow the timezone gets broken, no matter if my input is already Utc or not. Input :…
maf-soft
  • 2,335
  • 3
  • 26
  • 49
0
votes
1 answer

Opening existing project in Delphi 10.2 reports error that "Class TBarSeries not found."

This is a strange one, and is related to the Delphi IDE environment, but I'm hoping someone has some insight, cos I'm at a loss. Basically, the problem is that I'm now in a situation where any project I create that uses a TChart with a TBarSeries…
SiBrit
  • 1,460
  • 12
  • 39
0
votes
1 answer

Delphi - OpenDialog and DBGrid with Checkbox Click Problem

If i open an TOpenDialog above of a TDBGrid and double click to select an item, the click redirects to TDBGrid, marking the checkbox as well. To test, click on the Button and double click to open a file on the OpenDialog. The first checkbox will be…
Tallys Ferrante
  • 173
  • 1
  • 13
0
votes
0 answers

Move cursor to the end of block

Is there a way to move the cursor to the end of a block, like a procedure, function, or try block? I'm using CnPack components, too. Ctrl+K+Q does not work
J.Mark
  • 23
  • 5
0
votes
1 answer

Combination and Permutation with merging function

I have a n number of strings which I need to merge into n number of strings in multiple combinations/permutations. the string cannot repeat itself and combination in single merge doesnt matter ( S1, S2 ) = ( S2, S1 )... This is used when building a…
0
votes
0 answers

How can implement watchdog timer to check and do some action on network problem in non main thread?

I’m setting up a new monitoring program and I want to add a watchdog program to none main thread program to control net dead state. Sometimes, when I waiting to receive data from the server and occurs a net problem, my code looked at this line and…
0
votes
0 answers

How to check connection dead in TIdTCPClient and handle it?

I'm setting up a new server, and I have a deadlock on waiting to receive data from the server. On the client-side, I add a new thread to handle net program and on execute segment, first create a TIdTCPClient and connect to the server. Sending login…
0
votes
0 answers

adding data to list during mutli-threaded operation

i'm using AnonymousThreads and StringList to do http request behind a proxy server. i'm using the list to hold the proxies, i choose randomly a proxy from the list and use it. i keep adding strings to the list. after a while the threads stops, i'm…
henry
  • 1
  • 1
0
votes
0 answers

How to handle timeout in TIdTCPServer -- IOHandler.ReadTimeout property?

I'm trying to change the connection type from the string (ReadLn) to an array of byte (ReadByte) and so I have a problem with the timeout property of TIdTCPServer. How can identify timeout event in ReadByte mode and handle it? In ReadLn Mode by…