Revision history for KeyPgFormat


Revision [20929]

Last edited on 2016-03-13 01:05:20 by fxm [Formatting]
Additions:



Revision [20246]

Edited on 2016-02-10 16:00:39 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Format** ( [[KeyPgByval|byval]] //numerical_expression// [[KeyPgAs|as]] [[KeyPgDouble|double]], [[KeyPgByref|byref]] //formatting_expression// [[KeyPgAs|as]] [[KeyPgConstQualifier|const]] [[KeyPgString|string]] = "####" ) [[KeyPgAs|as]] [[KeyPgString|string]]

Null String 5 -5 0.5
0 5 -5 1
0.00 5.00 -5.00 0.50
#,##0 5 -5 1
#,##0.00 5.00 -5.00 0.50
0% 500% -500% 50%
0.00% 500.00% -500.00% 50.00%
0.00E+00 5.00E+00 -5.00E+00 5.00E-01
0.00E-00 5.00E00 -5.00E00 5.00E-01
Format Expression Display
m/d/yy 12/7/58
d-mmmm-yy 7-December-58
d-mmmm 7-December
mmmm-yy December-58
h:mm AM/PM 8:50 PM
h:mm:ss AM/PM 8:50:35 PM
h:mm 20:50
h:mm:ss 20:50:35
m/d/yy h:mm 12/7/58 20:50
- ##[[KeyPgPrintusing|Print Using]]##
- ##[[KeyPgPrintusing|? Using]]##
- ##[[KeyPgStr|Str]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Format** ( [[KeyPgByval byval]] //numerical_expression// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByref byref]] //formatting_expression// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] = "####" ) [[KeyPgAs as]] [[KeyPgString string]]

Null String 5 -5 0.5
0 5 -5 1
0.00 5.00 -5.00 0.50
#,##0 5 -5 1
#,##0.00 5.00 -5.00 0.50
0% 500% -500% 50%
0.00% 500.00% -500.00% 50.00%
0.00E+00 5.00E+00 -5.00E+00 5.00E-01
0.00E-00 5.00E00 -5.00E00 5.00E-01
Format Expression Display
m/d/yy 12/7/58
d-mmmm-yy 7-December-58
d-mmmm 7-December
mmmm-yy December-58
h:mm AM/PM 8:50 PM
h:mm:ss AM/PM 8:50:35 PM
h:mm 20:50
h:mm:ss 20:50:35
m/d/yy h:mm 12/7/58 20:50
- ##[[KeyPgPrintusing Print Using]]##
- ##[[KeyPgPrintusing ? Using]]##
- ##[[KeyPgStr Str]]##


Revision [17888]

Edited on 2016-01-08 14:29:55 by FxMwikki [Formatting for compatibility with wiki2]
Additions:
- ##[[KeyPgPrintusing Print Using]]##
- ##[[KeyPgPrintusing ? Using]]##
Deletions:
- ##[[KeyPgPrintusing (Print | ?) Using]]##


Revision [17866]

Edited on 2015-12-23 11:05:36 by FxMwikki ['?' is a shortcut for 'Print']
Additions:
- ##[[KeyPgPrintusing (Print | ?) Using]]##
Deletions:
- ##[[KeyPgPrintusing Print Using]]##


Revision [17650]

Edited on 2015-05-04 10:33:48 by DkLwikki ["pattern pattern" => "pattern"]
Additions:
formatting pattern
Deletions:
formatting pattern pattern


Revision [15759]

Edited on 2012-01-22 17:43:31 by CountingPine [Remove bad examples (We don't support ';')]
Deletions:
$#,##0;($#,##0) $5 ($5) $1
$#,##0.00;($#,##0.00) $5.00 ($5.00) $0.50


Revision [13954]

Edited on 2008-11-30 07:39:03 by JeffMarshall [name case fixup]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Format** ( [[KeyPgByval byval]] //numerical_expression// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByref byref]] //formatting_expression// [[KeyPgAs as]] [[KeyPgConstQualifier const]] [[KeyPgString string]] = "####" ) [[KeyPgAs as]] [[KeyPgString string]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Format** ( [[KeyPgByval byval]] //numerical_expression// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByref byref]] //formatting_expression// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] = "####" ) [[KeyPgAs as]] [[KeyPgString string]]


Revision [13904]

Edited on 2008-11-28 18:51:18 by LaananFisher [Fixed: const-correctness + byref]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Format** ( [[KeyPgByval byval]] //numerical_expression// [[KeyPgAs as]] [[KeyPgDouble double]], [[KeyPgByref byref]] //formatting_expression// [[KeyPgAs as]] [[KeyPgConstqualifier const]] [[KeyPgString string]] = "####" ) [[KeyPgAs as]] [[KeyPgString string]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Format** ( [[KeyPgByval byval]] //numerical_expression// [[KeyPgAs as]] [[KeyPgDouble double]], //formatting_expression// [[KeyPgAs as]] [[KeyPgString string]] = "####" ) [[KeyPgAs as]] [[KeyPgString string]]


Revision [13730]

Edited on 2008-09-15 07:20:57 by CountingPine [Mention n/nn, M/MM; no dialect differences; use string.bi; misc edits]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Format** ( [[KeyPgByval byval]] //numerical_expression// [[KeyPgAs as]] [[KeyPgDouble double]], //formatting_expression// [[KeyPgAs as]] [[KeyPgString string]] = "####" ) [[KeyPgAs as]] [[KeyPgString string]]
#include "string.bi"
This function is part of ""FreeBASIC"", however it is not recognized by the compiler unless ##vbcompat.bi## is included.
{{table columns="2" cellpadding="1" cells="Symbol ; Description;d, dd; Display the day as a one-digit/two-digit number (1-31/01-31);ddd; Display the day as an abbreviation (Sun-Sat);dddd; Display the day as a full name (Sunday-Saturday);ddddd; Display a serial date number as a complete date (including day, month and year);m, mm; Display the month as a one-digit/two-digit number (1-12/01-12). If immediately following h or hh, the minute rather than the month is displayed;M, MM; Display the month as a one-digit/two-digit number (1-12/01-12), even if immediately following h or hh;mmm; Display the month as an abbreviation (Jan-Dec);mmmm; Display the month as a full name (January-December);y, yy; Display the year as a two-digit number (00-99);yyyy; Display the year as a four-digit number (1900-2040);h, hh; Display the hour as a one-digit/two-digit number (0-23/00-23);m, mm; Display the minute as a one-digit/two-digit number (0-59/00-59). If not immediately following h or hh, the month rather than the minute is displayed;n, nn; Display the minute as a one-digit/two-digit number (0-59/00-59), even if not immediately following h or hh;s, ss; Display the second as a one-digit/two-digit number (0-59/00-59);ttttt; Display a time serial number as a complete time, including hour, minute and second;AM/PM (Default), am/pm; Use the 12-hour clock displaying AM or am with any hour before noon, PM or pm with any hour between noon and 11:59;A/P, a/p; Use the 12-hour clock displaying A or a with any hour before noon, P or p with any hour between noon and 11:59 "}}
None
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Format** ( [[KeyPgByval byval]] //numerical_expression// [[KeyPgAs as]] [[KeyPgDouble double]], //formatting_expression// [[KeyPgAs as]] [[KeyPgString string]] = "" ) [[KeyPgAs as]] [[KeyPgString string]]
#include "vbcompat.bi"
This function is part of FreeBASIC, however it is not recognized by the compiler unless ##vbcompat.bi## is included.
{{table columns="2" cellpadding="1" cells="Symbol ; Description;d; Display the day as a number without leading zeros (1-31);dd; Display the day as a number with leading zeros (01-31);ddd; Display the day as an abbreviation (Sun-Sat);dddd; Display the day as a full name (Sunday-Saturday);ddddd; Display a serial date number as a complete date (including day, month, and year);m; Display the month as a number without leading zeros (1-12) if used immediately following h or hh, the minute rather than the month is displayed;mm ; Display the month as a number with leading zeros (01-12) if used immediately following h or hh, the minute rather than the month is displayed;mmm; Display the month as an abbreviation (Jan-Dec);mmmm; Display the month as a full name (January-December);y;Display the year as a two-digit number (00-99);yyyy; Display the year as a four-digit number (1900-2040);h; Display the hour as a number without leading zeros (0-23);hh;Display the hour as a number with leading zeros (00-23);m; Display the minute as a number without leading zeros (0-59) if not used immediately following h or hh, the month rather than the minute is displayed;mm; Display the minute as a number with leading zeros (00-59) if not used immediately following h or hh, the month rather than the minute is displayed.;s; Display the second as a number without leading zeros (0-59);ss; Display the second as a number with leading zeros (00-59);ttttt; Display a time serial number as a complete time, including hour, minute, and second;AM/PM (Default) am/pm; Use the 12-hour clock displaying AM or am with am/pm any hour before noon, PM or pm with any hour between noon and 11:59;A/P a/p; Use the 12-hour clock displaying A or a with any hour before noon, P or p with any hour between noon and 11:59 "}}
- The string type suffix "$" is obligatory in the //[[CompilerOptlang -lang qb]]// dialect.
- The string type suffix "$" is optional in the //[[CompilerOptlang -lang fblite]]// and //[[CompilerOptlang -lang fb]]// dialects.


Revision [12831]

The oldest known version of this page was created on 2008-04-01 15:47:33 by JeffMarshall [Mention n/nn, M/MM; no dialect differences; use string.bi; misc edits]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode