Autor Beitrag
Metschu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 135

Windows XP SP2 Home
Delphi 7; Delphi XE2-Starter
BeitragVerfasst: Sa 29.01.11 13:48 
Hallo zusammen!

Ich möchte einen Integer in einen String umwandeln. Bei Zahlen kleiner 10 soll eine 0 davor gesetz werden.
Gibts da eine Fertige Funktion oder muß ich da mein selbst gebasteltes weiter verwenden?

Gruß

Torsten
bummi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1248
Erhaltene Danke: 187

XP - Server 2008R2
D2 - Delphi XE
BeitragVerfasst: Sa 29.01.11 13:55 
ausblenden Delphi-Quelltext
1:
Format('%.2d',[i])					

_________________
Das Problem liegt üblicherweise zwischen den Ohren H₂♂
DRY DRY KISS

Für diesen Beitrag haben gedankt: Metschu