Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Prism Alternative zu Format? (https://www.delphipraxis.net/18953-alternative-zu-format.html)

hitzi 26. Mär 2004 14:49


Alternative zu Format?
 
Hallo,

gibt es unter Delphi 8 eine Alternative für die Funktion "format" ohne die VCL einzubinden?

Vielen Dank
Hitzi

NicoDE 26. Mär 2004 14:59

Re: Alternative zu Format?
 
System.String.Format ?

hitzi 26. Mär 2004 17:16

Re: Alternative zu Format?
 
Ich meine die andere Funktion. Aus der Delphi 7 Hilfe: "Die Funktion gibt einen formatierten String zurück, der sich aus einem Format-String und einem Array von Argumenten ergibt."

In der Hilfe von Delphi 8 finde ich diese "format" Funktion nur im Borland.Vcl.SysUtils Namespace. Eben diesen will ich aber außen vor lassen. Wird eh eine Windows Form Applikation und keine VCL Form.

Die von dir angesprochene Funktion ist zum Formatieren von Zahlen, Daten, ... etc.


Hitzi

NicoDE 26. Mär 2004 17:26

Re: Alternative zu Format?
 
Zitat:

Zitat von hitzi
"Die Funktion gibt einen formatierten String zurück, der sich aus einem Format-String und einem Array von Argumenten ergibt."
[...]
Die von dir angesprochene Funktion ist zum Formatieren von Zahlen, Daten, ... etc.

Ich kann da keinen Unterschied erkennen...
(bis auf die Syntax des Formatstrings natürlich)
http://msdn.microsoft.com/library/en...ormattopic.asp
http://msdn.microsoft.com/library/en...rmattopic3.asp

hitzi 27. Mär 2004 11:03

Re: Alternative zu Format?
 
Danke NicoDE. War mein Fehler. Ich hatte nochmal in der Delphi Hilfe nachgesehen und dort bei der Format Funktion gelesen, dass die "Returns a string formatted according to instructions contained in a format String expression.".
Ich hätte allerdings bei "Format method" nachlesen solle.

Danke für deine Hilfe.

MfG Hitzi


Alle Zeitangaben in WEZ +1. Es ist jetzt 05:41 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