Autor Beitrag
Mike19
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: So 06.09.09 14:57 
Hallo,

kennt jemand eine Liste aller Format-Strings für Delphi ?

Micha
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19335
Erhaltene Danke: 1751

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 06.09.09 15:03 
Die stehen in der Hilfe. ;-)

// EDIT:
Und wenn du die lokale Hilfe nicht magst...
docs.codegear.com/pr...@array_of_const.html
docs.codegear.com/pr...@array_of_const.html
Mike19 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: So 06.09.09 15:09 
Danke,

aber die lokale hat bei mir ne Macke.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19335
Erhaltene Danke: 1751

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: So 06.09.09 15:12 
Dann empfehle ich die Online-Version, die ich kurz vor deiner Antwort noch reineditiert habe. ;-)
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: So 06.09.09 16:52 
user profile iconMike19 hat folgendes geschrieben Zum zitierten Posting springen:
aber die lokale hat bei mir ne Macke.

Solltest du dich drum kümmern.

_________________
PROGRAMMER: A device for converting coffee into software.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 06.09.09 20:12 
Hallo,

dazu hab ich mal ein Programm geschrieben mit dem man die Möglichkeiten der Format-Strings durchtesten kann.
FSCode-Producer 0.a
Muss ich bei Gelegenheit mal weiterentwickeln.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Mike19 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Mo 07.09.09 14:29 
Vielen Dank für die vielen Antworten,

es klappt auch alles wunderbar, bis auf eine Anweisung

ausblenden Delphi-Quelltext
1:
Label19.caption:=Format('%d',[difatage]);					


wenn die Variable einen negativen Wert hat, kommt die Darstellung so: 21-

Hat da noch einer einen Rat ?
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 07.09.09 14:40 
Und was passiert bei %i?
Mike19 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Mo 07.09.09 14:50 
eine Fehlermeldung "..invalid or incompertible.."

Das eigenartige ist ja, dass es bei anderen Integer-Werten klappt.?