![]() |
Re: kalorienrechner
höä??^^
noch mal für dumme x) |
Re: kalorienrechner
Hi,
Format hat nix mit (Festplatte-) formatieren zu tun, sondern um Zahlen, Zeichen etc formatiert anzuzeigen. Tippe mal im QuellCode irgendwo Format, setze Cursor drauf und drücke F1 - Taste. Kleines Beispiel:
Delphi-Quellcode:
Dort wor das %-Zeichen steht, wird die [zahl] 'übernommen'.
procedure TForm1.Button1Click(Sender: TObject);
var zahl : Integer; begin zahl := 99; Label1.caption := Format('Hier die %6d 6-stellig angezeigt',[zahl]); end; Gruß, MJ |
Re: kalorienrechner
Delphi-Quellcode:
ShowMessage(Format('Hi ich bin %d Jahre alt!', [Zahl]));
// oder.. ShowMessage('Hi ich bin ' + IntToStr(Zahl) + ' Jahre alt!'); |
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:37 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