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

delphi7 converted to delphi tokyo app taskbar icon does not like to move to second screen app

my delphi7 apps always show in the primary screen monitor taskbar , Now in delphi 10.2 If I move the app to the second screen the taskbar icon move to that seconds screen . So now my issue is with the old delphi7 apps which I open and compile with…
Kan
  • 111
  • 1
  • 10
-1
votes
2 answers

For Delphi 10.2.3: How to create unit.someproperty.anotherproperty.mymethod(myvariable: variabletype): variabletype;?

For Delphi 10.2.3: Not sure how to ask this question, but how do I create a method similar to memo1.lines.add(); and memo1.Lines.Count.ToString; where lines contains many other methods, procedures, and properties?? This is how I think it…
El Diablo
  • 168
  • 1
  • 12
-1
votes
1 answer

Reproducible error with Winapi.ShlObj.SHGetFolderPath

With this code I get an AV: uses Winapi.ShlObj; function GetUserAppDataPath: string; var ThisPath: PWideChar; begin if Winapi.ShlObj.SHGetFolderPath(0, CSIDL_APPDATA, 0, SHGFP_TYPE_CURRENT, ThisPath) = S_OK then Result :=…
user1580348
  • 5,721
  • 4
  • 43
  • 105
-1
votes
3 answers

Showing modal form from a component

I have a problem with showing a modal form from a custom component. During the application start the CustomComponent creates a custom form (CreateMenu) which is not visible for the user. When the user clicks on the component (during runtime) the…
Quba
  • 1
  • 1
-1
votes
1 answer

Move from BDE to ADO - Databse

although the question might seem to be similar to other questions concerning this subject, I am afraid it is more complicated. I try to run a program that I programmed a long time ago under win XP using Delphi 2005. Now using Delphi 10.2.3 Toky,…
-1
votes
1 answer

Error when opening a file saved on a mapped drive

I have a viewer to show my saved reports. Delphi XE7 works all right. But, on new version (Delphi Tokyo) it doesn't work. if OpenDialog.Execute then ShellExecute (0, nil, 'C:\C_Progs\CrystalViewer.exe', PWideChar('"' +OpenDialog.FileName+…
Seeko
  • 75
  • 1
  • 8
-1
votes
1 answer

Delphi - Creating a generic TButton that creates an object of any given class

I am creating UI Components programmatically. One of my components is a TButton (or descendant), and I want the button to create an object of a given type when clicked. I have dozens of types and of course I don't want to create dozens of…
-1
votes
1 answer

Delphi how to avoid an uninitialized variable in chain methods

I'm trying to build an API, but I'm stopped at the following problem: Here is all the code to simulate the problem unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, …
Passella
  • 640
  • 1
  • 8
  • 23
-1
votes
1 answer

Why Does this not work trying change DateSeparator

System.SysUtils.FormatSettings.DateSeparator := '-'; result := StrToDateTime(Trim(val)); System.SysUtils.FormatSettings.DateSeparator := '/'; val Before = '10-23-2008 11:43:54' Result After = 10/23/2008 11:43:54 AM Clearly the DateSeparator was not…
S bossen
  • 87
  • 1
  • 5
-1
votes
1 answer

Delphi Indy JSON Post

So I have been trying to get the data I require from a website using the Indy Project (Internet Direct) in Delphi. I have managed to use the GET and POST methods to log in, obtain the unique Session ID (EPASS_Nonce_ID) that is required to be…
Sercho
  • 305
  • 2
  • 9
-1
votes
1 answer

Error in migrated Delphi project (2010 - 10.2)

I'm migrating a project made with Delphi 2010 to Delphi 10.2. After installing all the dependencies with their updated version, this error happens: It doesn't give me the line and I cannot put a breakpoint anywhere in file Data.DBXCommon. The error…
Lucas Steffen
  • 1,244
  • 2
  • 10
  • 22
-1
votes
1 answer

Selfmade Keyboard show and hide Rad Studio Delphi 10.2 Tokyo

I built a cross platform application to run it on Android. I use a TEdit to get the numbers and a Label to show the result of the calculation. (This function is already running). Is there any way to show a calculator keyboard whenever I click into…
J1MAV1GN0N
  • 33
  • 2
  • 6
-1
votes
1 answer

Delphi cannot execute brcc32 via shellexecute

I have started writing components and I want to write a program to generate DCR files for me. The picture of a component must be a 24x24 bitmap, so I need to create a resource file and then use brcc32 to create the DCR. Steps: Create a 24x24 bitmap…
Raffaele Rossi
  • 2,997
  • 4
  • 31
  • 62
-1
votes
1 answer

FastReport Format function unicode error

I use fastreport 5.4.6 on Delphi 10.2 but fastreport has error when display Format function with unicode args. Here is error Create memo with text = [Format('%s' , ['nghìn tỷ'])] nghìn tỷ It will display "nghìn t? nghìn tỷ" How to fix it. Please…
Tuan Hoang Anh
  • 994
  • 12
  • 31
-2
votes
1 answer

Indy 400 Bad Request exception

I'm using Delphi 10.2 and am getting a 400 Bad Request exception using TIdHTTP.Get(). I can enter the HTTP call string into any browser and it works correctly, but not in Indy. My request string is: accept text/html,*/* accept charset …