Revision history for KeyPgPrintusing


Revision [22011]

Last edited on 2017-11-21 01:11:40 by JeffMarshall [fix page link name case]
Additions:
The file number of a file or device opened for ##[[KeyPgOutput|Output]]## or ##[[KeyPgAppend|Append]]##. (Alternatively ##[[KeyPgLprint|Lprint]]## may be used where appropriate, instead of ##[[KeyPgPrintPp|Print #]]##)
- ##[[KeyPgPrintPp|Print #]]##
- ##[[KeyPgPrintPp|? #]]##
Deletions:
The file number of a file or device opened for ##[[KeyPgOutput|Output]]## or ##[[KeyPgAppend|Append]]##. (Alternatively ##[[KeyPgLprint|Lprint]]## may be used where appropriate, instead of ##[[KeyPgPrintpp|Print #]]##)
- ##[[KeyPgPrintpp|Print #]]##
- ##[[KeyPgPrintpp|? #]]##


Revision [21965]

Edited on 2017-10-23 15:43:03 by St_W [fix table formatting]
Additions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;!;prints the first character of a string;\ \;prints as many characters of a string as occupied between the pair \ \;&;prints the entire string"}}
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for either an integer digit, or a decimal digit if a decimal point precedes it;,;placed after integer digit indicates groups of 3 digits should be separated by commas in fixed-point notation;.;placed near # indicates place for the decimal point;^^^^;uses exponential notation (E+/-###) when placed after the digit characters;+;placed before/after the format string, controls whether the sign of a number is prepended/appended, and causes an explicit '+' sign to be printed for positive numbers;-;placed after the format string, causes the sign of the number to be appended rather than prepended, appending a space/negative sign for positive/negative numbers;$$;placed at the start of integer digits, causes a dollar sign to be prepended to the number (after the sign if one is prepended);**;placed at the start of integer digits, causes any padding on the left to be changed from spaces to asterisks;**$;placed at the start of integer digits, pads on the left with asterisks, and prepends a dollar sign after the asterisks;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}
Deletions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;!;prints the first character of a string;\ \;prints as many characters of a string as occupied between the pair \ \;&prints the entire string"}}
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for either an integer digit, or a decimal digit if a decimal point precedes it;,;placed after integer digit indicates groups of 3 digits should be separated by commas in fixed-point notation;.;placed near # indicates place for the decimal point;^^^^;uses exponential notation (E+/-###) when placed after the digit characters;+;placed before/after the format string, controls whether the sign of a number is prepended/appended, and causes an explicit '+' sign to be printed for positive numbers;-;placed after the format string, causes the sign of the number to be appended rather than prepended, appending a space/negative sign for positive/negative numbers;$$;placed at the start of integer digits, causes a dollar sign to be prepended to the number (after the sign if one is prepended);**;placed at the start of integer digits, causes any padding on the left to be changed from spaces to asterisks;**$;placed at the start of integer digits, pads on the left with asterisks, and prepends a dollar sign after the asterisks;&prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}


Revision [21094]

Edited on 2016-03-13 09:26:53 by fxm [Formatting]
Additions:











Revision [20467]

Edited on 2016-02-10 16:07:11 by DkLwikki [Update link format]
Additions:
([[KeyPgPrint|Print]] | [[KeyPgPrint|?]]) [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
The file number of a file or device opened for ##[[KeyPgOutput|Output]]## or ##[[KeyPgAppend|Append]]##. (Alternatively ##[[KeyPgLprint|Lprint]]## may be used where appropriate, instead of ##[[KeyPgPrintpp|Print #]]##)
Optional preceding list of items to print, separated by commas (##,##) or semi-colons (##;##) (see ##[[KeyPgPrint|Print]]## for more details).
- ##[[KeyPgPrint|Print]]##
- ##[[KeyPgPrint|?]]##
- ##[[KeyPgPrintpp|Print #]]##
- ##[[KeyPgPrintpp|? #]]##
- ##[[KeyPgFormat|Format]]##
- ##[[KeyPgUsing|Using]]##
- ##[[KeyPgPalette|Palette Using]]##
Deletions:
([[KeyPgPrint Print]] | [[KeyPgPrint ?]]) [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
The file number of a file or device opened for ##[[KeyPgOutput Output]]## or ##[[KeyPgAppend Append]]##. (Alternatively ##[[KeyPgLprint Lprint]]## may be used where appropriate, instead of ##[[KeyPgPrintpp Print #]]##)
Optional preceding list of items to print, separated by commas (##,##) or semi-colons (##;##) (see ##[[KeyPgPrint Print]]## for more details).
- ##[[KeyPgPrint Print]]##
- ##[[KeyPgPrint ?]]##
- ##[[KeyPgPrintpp Print #]]##
- ##[[KeyPgPrintpp ? #]]##
- ##[[KeyPgFormat Format]]##
- ##[[KeyPgUsing Using]]##
- ##[[KeyPgPalette Palette Using]]##


Revision [17896]

Edited on 2016-01-08 15:52:03 by FxMwikki [Formatting for compatibility with wiki2]
Additions:
([[KeyPgPrint Print]] | [[KeyPgPrint ?]]) [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
Deletions:
[[KeyPgPrint Print]] [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
//or//
[[KeyPgPrint ?]] [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]


Revision [17882]

Edited on 2016-01-08 14:19:55 by FxMwikki [Formatting for compatibility with wiki2]
Additions:
[[KeyPgPrint Print]] [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
//or//
[[KeyPgPrint ?]] [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
- ##[[KeyPgPrint Print]]##
- ##[[KeyPgPrint ?]]##
- ##[[KeyPgPrintpp Print #]]##
- ##[[KeyPgPrintpp ? #]]##
Deletions:
([[KeyPgPrint Print | ?]]) [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
- ##[[KeyPgPrint (Print | ?)]]##
- ##[[KeyPgPrintpp (Print | ?) #]]##


Revision [17856]

Edited on 2015-12-22 14:47:15 by FxMwikki ['?' is a shortcut for 'Print']
Additions:
{{fbdoc item="title" value="(PRINT | ?) USING"}}----
([[KeyPgPrint Print | ?]]) [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
- ##[[KeyPgPrint (Print | ?)]]##
- ##[[KeyPgPrintpp (Print | ?) #]]##
Deletions:
{{fbdoc item="title" value="PRINT USING"}}----
[[KeyPgPrint Print]] [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
- ##[[KeyPgPrint Print]]##
- ##[[KeyPgPrintpp Print #]]##


Revision [16639]

Edited on 2013-03-05 15:43:30 by CountingPine [Change '&' in tables to '&amp']
Additions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;!;prints the first character of a string;\ \;prints as many characters of a string as occupied between the pair \ \;&prints the entire string"}}
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for either an integer digit, or a decimal digit if a decimal point precedes it;,;placed after integer digit indicates groups of 3 digits should be separated by commas in fixed-point notation;.;placed near # indicates place for the decimal point;^^^^;uses exponential notation (E+/-###) when placed after the digit characters;+;placed before/after the format string, controls whether the sign of a number is prepended/appended, and causes an explicit '+' sign to be printed for positive numbers;-;placed after the format string, causes the sign of the number to be appended rather than prepended, appending a space/negative sign for positive/negative numbers;$$;placed at the start of integer digits, causes a dollar sign to be prepended to the number (after the sign if one is prepended);**;placed at the start of integer digits, causes any padding on the left to be changed from spaces to asterisks;**$;placed at the start of integer digits, pads on the left with asterisks, and prepends a dollar sign after the asterisks;&prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}
Deletions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;!;prints the first character of a string;\ \;prints as many characters of a string as occupied between the pair \ \;&;prints the entire string"}}
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for either an integer digit, or a decimal digit if a decimal point precedes it;,;placed after integer digit indicates groups of 3 digits should be separated by commas in fixed-point notation;.;placed near # indicates place for the decimal point;^^^^;uses exponential notation (E+/-###) when placed after the digit characters;+;placed before/after the format string, controls whether the sign of a number is prepended/appended, and causes an explicit '+' sign to be printed for positive numbers;-;placed after the format string, causes the sign of the number to be appended rather than prepended, appending a space/negative sign for positive/negative numbers;$$;placed at the start of integer digits, causes a dollar sign to be prepended to the number (after the sign if one is prepended);**;placed at the start of integer digits, causes any padding on the left to be changed from spaces to asterisks;**$;placed at the start of integer digits, pads on the left with asterisks, and prepends a dollar sign after the asterisks;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}


Revision [16239]

Edited on 2012-08-03 13:56:17 by CountingPine [Minor changes; small syntax adjustments]
Additions:
[[KeyPgPrint Print]] [# //filenum// ,] [ //printexpressionlist// {,|;} ] **Using** //formatstring// **;** [ //expressionlist// [ ; ] ]
Optional preceding list of items to print, separated by commas (##,##) or semi-colons (##;##) (see ##[[KeyPgPrint Print]]## for more details).
List of items to format, separated by semi-colons (##;##).
If no expression list is given, the format string will be printed up to the first special marker. Note that the semi-colon after ##//formatstring//## is still necessary, even if no expression list is given.
A new-line character is printed after the values in the expression list unless the expression list is followed by a semicolon (##;##).
Deletions:
[[KeyPgPrint Print]] [# //filenum// ,] [ //printexpressionlist// ,|; ] **Using** //formatstring// **;** [ //expressionlist// ] [ ; ]
Optional preceding list of items to print, separated by commas or semi-colons (see ##[[KeyPgPrint Print]]## for more details).
List of items to format, separated by semi-colons.
If no expression list is given, the format string will be printed up to the first special marker. Note that the semi-colon after the format string is still necessary, even if no expression list is given.
A new-line character is printed after the values in the expression list unless the expression list is followed by a semicolon.


Revision [16238]

Edited on 2012-08-03 13:12:09 by FxMwikki [Terminating semicolon is allowed]
Additions:
[[KeyPgPrint Print]] [# //filenum// ,] [ //printexpressionlist// ,|; ] **Using** //formatstring// **;** [ //expressionlist// ] [ ; ]
A new-line character is printed after the values in the expression list unless the expression list is followed by a semicolon.
Deletions:
[[KeyPgPrint Print]] [# //filenum// ,] [ //printexpressionlist// ,|; ] **Using** //formatstring// **;** [ //expressionlist// ]


Revision [16232]

Edited on 2012-08-02 12:17:17 by CountingPine [This page should take on the role of "Print # ... Using" as well.]
Additions:
Outputs formatted text to the screen or output device
[[KeyPgPrint Print]] [# //filenum// ,] [ //printexpressionlist// ,|; ] **Using** //formatstring// **;** [ //expressionlist// ]
##//filenum//##
The file number of a file or device opened for ##[[KeyPgOutput Output]]## or ##[[KeyPgAppend Append]]##. (Alternatively ##[[KeyPgLprint Lprint]]## may be used where appropriate, instead of ##[[KeyPgPrintpp Print #]]##)
##//printexpressionlist//##
Optional preceding list of items to print, separated by commas or semi-colons (see ##[[KeyPgPrint Print]]## for more details).
List of items to format, separated by semi-colons.
- ##[[KeyPgPrintpp Print #]]##
Deletions:
Outputs formatted text to the screen
**Print Using** //formatstring// **;** [ //expressionlist// ]
List of items to print, separated by semi-colons.
- ##[[KeyPgPrintusingPp Print # Using]]##


Revision [15531]

Edited on 2011-12-05 15:25:32 by CountingPine [Typos]
Additions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;!;prints the first character of a string;\ \;prints as many characters of a string as occupied between the pair \ \;&;prints the entire string"}}
If a numerical value cannot fit in the number of digits indicated by the format string, the formatting is adapted to fit the number, possibly switching to scientific notation, and the number is printed preceded by the percent ##"%"## character. E.g., the number ##1234## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%1234.00"##.
Deletions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;!;prints the first character of a string;\ \;prints as many characters of a string as occuppied between the pair \ \;&;prints the entire string"}}
If a numerical value cannot fit in the number of digits indicated by the format string, the formatting is adapted to fit the number, possibly switching to sientific notation, and the number is printed preceded by the percent ##"%"## character. E.g., the number ##1234## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%1234.00"##.


Revision [15135]

Edited on 2011-08-01 09:48:56 by CountingPine [Typos]
Additions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for either an integer digit, or a decimal digit if a decimal point precedes it;,;placed after integer digit indicates groups of 3 digits should be separated by commas in fixed-point notation;.;placed near # indicates place for the decimal point;^^^^;uses exponential notation (E+/-###) when placed after the digit characters;+;placed before/after the format string, controls whether the sign of a number is prepended/appended, and causes an explicit '+' sign to be printed for positive numbers;-;placed after the format string, causes the sign of the number to be appended rather than prepended, appending a space/negative sign for positive/negative numbers;$$;placed at the start of integer digits, causes a dollar sign to be prepended to the number (after the sign if one is prepended);**;placed at the start of integer digits, causes any padding on the left to be changed from spaces to asterisks;**$;placed at the start of integer digits, pads on the left with asterisks, and prepends a dollar sign after the asterisks;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}
Deletions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for either an integer digit, or a decimal digit if a decimal point precedes it;,;placed after integer digit indicates groups of 3 digits should be separated by commas in fixed-point notation;.;placed near # indicates place for the decimal point;^^^^;uses exponential notation (E+/-###) when placed after the digit characters;+;placed before/after the format string, controls whether the sign of a number is prepended/appended, and causes an explicit '+' sign to be printed for positive numbers;-;placed after the format string, causes the sign of the number to be appended rather than prepended, appending a space/negative sign for positive/negative numbers;$$;placed at the start of integer digits, causes a dollar sign to be prepended to the number (after the sign if one is prepended);**;placed at the start of integer digits, causes any padding on the left to be changed from spaces to asterisks;**$;pads on the left with asterisks, and prepends a dollar sign after the asterisks;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}


Revision [15123]

Edited on 2011-07-24 16:38:35 by CountingPine [Minor additional changes]
Additions:
All of the special marker characters can be escaped by preceding them with the underscore character ##"_"##, allowing them to be printed directly. For example, ##"_!"## is printed as ##"!"##, and ##"_""""_"## is printed as ##"_"##.
If a numerical value cannot fit in the number of digits indicated by the format string, the formatting is adapted to fit the number, possibly switching to sientific notation, and the number is printed preceded by the percent ##"%"## character. E.g., the number ##1234## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%1234.00"##.
Deletions:
All of the special marker characters can be escaped, or preceded, with the underscore character ##"_"##, allowing them to be printed directly. For example, ##"_!"## is printed as ##"!"##.
If a numerical value doesn't fit in the form indicated by the format string, the formatting is ignored and the number is printed preceded by the percent ##"%"## character. E.g., the number ##1234## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%1234.00"##.


Revision [15122]

Edited on 2011-07-24 16:26:17 by CountingPine [More information on number format chars]
Additions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for either an integer digit, or a decimal digit if a decimal point precedes it;,;placed after integer digit indicates groups of 3 digits should be separated by commas in fixed-point notation;.;placed near # indicates place for the decimal point;^^^^;uses exponential notation (E+/-###) when placed after the digit characters;+;placed before/after the format string, controls whether the sign of a number is prepended/appended, and causes an explicit '+' sign to be printed for positive numbers;-;placed after the format string, causes the sign of the number to be appended rather than prepended, appending a space/negative sign for positive/negative numbers;$$;placed at the start of integer digits, causes a dollar sign to be prepended to the number (after the sign if one is prepended);**;placed at the start of integer digits, causes any padding on the left to be changed from spaces to asterisks;**$;pads on the left with asterisks, and prepends a dollar sign after the asterisks;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}
Deletions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for a digit;,; placed after integer digit indicates groups of 3 digits should be separated by commas;.; placed near # indicates place for the decimal point;+;prints the sign of the number when placed to the left of numeric formatting;^^^^;prints exponential notation when placed to the right of numeric formatting;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}


Revision [14223]

Edited on 2009-08-20 02:01:14 by CountingPine [More information on number format chars]
Additions:
- ##[[KeyPgUsing Using]]##


Revision [14220]

Edited on 2009-08-20 01:56:02 by CountingPine [More information on number format chars]
Additions:
Print to screen various expressions using a format determined by the ##//formatstring//## parameter. Internally, ##**Print Using**## uses a buffer size of 2048 bytes: while it is highly unlikely that this buffer would be filled, it should be noted that output would be truncated should this limit be reached.
Deletions:
Print to screen various expressions using a format determined by the ##//formatstring//## parameter. Internally, ##**Print Using**## uses a buffer size of 2048 bytes, while it is highly unlikely that this buffer would be filled, it should be noted that output would be truncated should this limit be reached.


Revision [14219]

Edited on 2009-08-20 01:54:37 by CountingPine [Minor corrections; link to Format]
Additions:
List of items to print, separated by semi-colons.
If no expression list is given, the format string will be printed up to the first special marker. Note that the semi-colon after the format string is still necessary, even if no expression list is given.
All of the special marker characters can be escaped, or preceded, with the underscore character ##"_"##, allowing them to be printed directly. For example, ##"_!"## is printed as ##"!"##.
If a numerical value doesn't fit in the form indicated by the format string, the formatting is ignored and the number is printed preceded by the percent ##"%"## character. E.g., the number ##1234## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%1234.00"##.
Print Using "The ASCII code for the pound sign (_#) is ###"; Asc("#")
Print Using "The last day in the year is & \ \"; 31; "December"
The ASCII code for the pound sign (#) is 35
- QB didn't allow ##"&"## to be used for printing numbers.
- ##[[KeyPgFormat Format]]##
- ##[[KeyPgPalette Palette Using]]##
Deletions:
List of items to print.
If no expression list is given, nothing will be output (note that the semi-colon after the format string is still necessary, even if no expression list is given).
All of the special marker characters can be escaped, or preceded, with the underscore character ##"_"##, allowing them to be printed directly (##"_!"## prints ##"!"##).
If a numerical value can't be formatted in the form indicated by the format string, the formatting is ignored and the number is printed preceded by the percent ##"%"## character. E.g., the number ##2E+200## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%2E+200"##.
The ##**Using**## keyword is used with a different meaning with the ##[[KeyPgPalette Palette]]## graphics command

Print Using "The ASCII code for the pound sign (_#) is &"; asc("#")
Print Using "The last day in the year is ## \ \"; 31; "December"
Number sign is # and its ASCII code is 35
- In QB a not-to-be-formatted ##//expressionlist//## could be entered before the USING clause;
- ##[[KeyPgPalette Palette]]##


Revision [14162]

Edited on 2009-06-15 03:48:51 by CountingPine [Add mention of "&" for numbers, also "," was missing]
Additions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for a digit;,; placed after integer digit indicates groups of 3 digits should be separated by commas;.; placed near # indicates place for the decimal point;+;prints the sign of the number when placed to the left of numeric formatting;^^^^;prints exponential notation when placed to the right of numeric formatting;&;prints a number intelligently, using the exact number of digits required (new to version 0.21.0b)"}}
If a numerical value can't be formatted in the form indicated by the format string, the formatting is ignored and the number is printed preceded by the percent ##"%"## character. E.g., the number ##2E+200## with a ##//formatstring//## of ##"""##.##"""## would be printed as ##"%2E+200"##.
Print Using "The ASCII code for the pound sign (_#) is &"; asc("#")
Print Using "The last day in the year is ## \ \"; 31; "December"
Deletions:
{{table columns="2" cellpadding="2" cells="Marker;Formatting;#;placeholder for a digit;.; placed near # indicates place for the decimal point;+;prints the sign of the number when placed to the left of numeric formatting;^^^^;prints exponential notation when placed to the right of numeric formatting"}}
If a numerical value can't be formatted in the form indicated by the format string, the formatting is ignored and the number is printed preceded by the percent ##"%"## character. E.g., the number ##2E+200## with a ##//formatstring//## of " ""##"".""##"" " would be printed as ##"%2E+200"##.
Print Using "The ASCII code for the pound sign (_#) is ###"; asc("#")
Print Using "The last day in the year is ## \ \"; 31, "December"


Revision [11632]

The oldest known version of this page was created on 2007-11-10 09:14:09 by JeffMarshall [Add mention of "&" for numbers, also "," was missing]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode