Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

DisplayFormat does not correctly display monetary value 9 months 2 weeks ago #18245

  • houmaine merine
  • houmaine merine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Hi everybody
I would like to report my problem:
DisplayFormat does not correctly display monetary value with the following values:
   BiDiMode = bdRightToLeft,
   ThousandSeparator = ' ' //** Space **//
   DecimalSeparator = ',' //** Comma **//
for example the value 25 500.52 is displayed as 500.52 25

Please correct this problem.
all my greetings
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by houmaine merine.

DisplayFormat does not correctly display monetary value 9 months 2 weeks ago #18246

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1106
  • Thank you received: 162
Any sample project for test ?
Your OS, CT version, Target Platform, etc ? 
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

DisplayFormat does not correctly display monetary value 9 months 2 weeks ago #18247

  • houmaine merine
  • houmaine merine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
 win64 bits, Arabic Algeria, CT 8.21 

procedure TForm1.Button1Click(Sender: TObject);
Var x: Extended;
begin
  x:= StrToFloat(Edit1.text);
  Edit2.Text:=FloatToStrF(x, ffNumber, 18, 2);
end;
 
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by houmaine merine.

DisplayFormat does not correctly display monetary value 9 months 2 weeks ago #18250

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1106
  • Thank you received: 162
We test but can't find any problem.
My suggestion is to test and latest CodeTyphon 8.30

 
PilotLogic Core Programmer
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..

DisplayFormat does not correctly display monetary value 9 months 2 weeks ago #18254

  • houmaine merine
  • houmaine merine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
Please, make this change before test:
  1. Go to Windows Settings \ Time and Language \ Region \  Additional Date, Time and regional settings \ Change date, time, and number formats
  2. Change Digit grouping symbol to "Space"
  3.  
  4. Form1.BiDiMode = bdRightToLeft
Now test with this setting
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: by houmaine merine.

DisplayFormat does not correctly display monetary value 9 months 2 weeks ago #18260

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1106
  • Thank you received: 162
Please,
Your OS ?
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

DisplayFormat does not correctly display monetary value 9 months 2 weeks ago #18263

  • houmaine merine
  • houmaine merine's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
WIn 64 bits regional settings ALGERIA Arabic

Please Log in or Create an account to join the conversation.

Last edit: by houmaine merine.
  • Page:
  • 1