Befehlsreferenz - Umwandlungsfunktionen: Format-Funktion VB-Versionen: VB4 | VB5 | VB6 Beschreibung: Syntax: Format (Ausdruck, [Format, [ErsterWochentag, [ErsteWocheImJahr]]] ) Parameter:
Die Format-Funktion wurde mehr oder weniger durch die neueren Format-Funktionen FormatDateTime, FormatCurrency, FormatNumber und FormatPercent ersetzt. Beispiel: ' Datum und Zeit MsgBox Format(Time, "Long Time") ' je nach Systemeinstellungen MsgBox Format(Time, "Short Time") ' je nach Systemeinstellungen MsgBox Format(Now, "Long Date") ' je nach Systemeinstellungen MsgBox Format(Now, "Short Date") ' je nach Systemeinstellungen MsgBox Format(Now, "dd.mm.yyyy") ' Strings MsgBox Format("hallo welt", ">") ' ergibt "HALLO WELT" MsgBox Format("HALLO WELT", "<") ' ergibt "hallo welt" ' Zahlen MsgBox Format(12345, "###,##") ' ergibt "12.345", Tausendertrennzeichen MsgBox Format(12345, ",##") ' ergibt "12" MsgBox Format(12345, "0.00") ' ergibt "12345.00" MsgBox Format(12345, "0.00 DM") ' ergibt "12345.00 DM"
Diese Seite wurde bereits 120.392 mal aufgerufen. |
Neu! sevCoolbar 3.0 Professionelle Toolbars im modernen Design! Mit sevCoolbar erstellen Sie in wenigen Minuten ansprechende und moderne Toolbars und passen diese optimal an das Layout Ihrer Anwendung an (inkl. große Symbolbibliothek) - für VB und MS-Access Buchempfehlung Tipp des Monats April 2024 Skyfloy Chart von Microsoft und dazu noch gratis Tutorial für Microsoft Chart Controls für Microsoft .NET Framework 3.5 Access-Tools Vol.1 Über 400 MByte Inhalt Mehr als 250 Access-Beispiele, 25 Add-Ins und ActiveX-Komponenten, 16 VB-Projekt inkl. Source, mehr als 320 Tipps & Tricks für Access und VB |
|||||||||||||
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein. |