Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   integer formatierung ?? (https://www.delphipraxis.net/56924-integer-formatierung.html)

Gigant02 13. Nov 2005 16:02


integer formatierung ??
 
hallo

also ich habe in einen integer eine 1 stehen

was mache ich wenn da 01 stehen soll ??

lg, gigant

ichbins 13. Nov 2005 16:03

Re: integer formation ??
 
Delphi-Quellcode:
function inttostrstellen(i,stellen:integer):string;
begin
  result:=inttostr(i);
  while length(result)<stellen do
    result:='0'+result;
end;

Flocke 13. Nov 2005 16:06

Re: integer formation ??
 
Zitat:

Zitat von Gigant02
integer formation ??

:lol: sorry - du meinst "Formatierung"

Probier
Delphi-Quellcode:
Format('%.2d', [Zahl]);

Gigant02 13. Nov 2005 16:11

Re: integer formation ??
 
ähh ja sorry meine ich

jup geht besten dank

lg, gigant


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:23 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 by Thomas Breitkreuz