AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke falsches Datums- und Zahlenformat in Webanwendung
Thema durchsuchen
Ansicht
Themen-Optionen

falsches Datums- und Zahlenformat in Webanwendung

Ein Thema von bcvs · begonnen am 16. Jul 2021 · letzter Beitrag vom 16. Jul 2021
 
Rolf Frei

Registriert seit: 19. Jun 2006
655 Beiträge
 
Delphi 11 Alexandria
 
#5

AW: falsches Datums- und Zahlenformat in Webanwendung

  Alt 16. Jul 2021, 12:34
Delphi-Quellcode:
System.SysUtils.FormtSettings := TFormatSettings.Create('de-DE');

System.SysUtils.FormtSettings := TFormatSettings.Create('en-US');
System.SysUtils.FormtSettings := TFormatSettings.Invariant; // wie en-US, aber nicht aus Windows geholt, sondern manuell von Delphi

ACHTUNG: Wenn Windows eine ChangeNotification sendet (WM_SETTINGCHANGE oder RM_TaskbarCreated), dann lädt Delphi standardmäßig die Spracheinstellungen neu und überschreibt deine Änderungen.
Application.UpdateFormatSettings := False;
Das betrifft nur Windows Anwendungen und nicht Webanwendungen (Webbroker). Application.UpdateFormatSettings gibt es da nicht. Wenn die obige Formatsetting bei jedem Request gemacht wird, sollte das kein Problem darstellen.
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:59 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz