1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 07:25:53 +00:00
QB64-PE/internal/help/WRITE.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

37 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

The {{KW|WRITE}} statement writes a [[comma]]-separated list of values to the screen without spacing.
{{PageSyntax}}
:{{KW|WRITE}} [{{Parameter|expression, List}}]
{{PageDescription}}
* {{Parameter|expressionList}} is a comma-separated list of variable or literal values to be written to the screen.
* Write statement separates displayed values using [[comma]] separators(required) that will display on the screen.
* Leading and trailing number spaces are omitted when displaying numerical values.
* [[STRING|String]] [[quotation mark]]s will also be displayed.
* [[Semicolon]]s cannot be used in or following the WRITE statement!
''Example:'' Comparing WRITE to the same PRINT statement.
{{CodeStart}}a% = 123
b$ = &quot;Hello&quot;
c! = 3.1415
{{Cl|PRINT}} a%, b$, c! 'commas display tab spaced data
{{Cl|WRITE}} a%, b$, c! 'displays commas between values, strings retain end quotes
{{CodeEnd}}
{{OutputStart}}
123        Hello      3.1415
123,&quot;Hello&quot;,3.1415 '' ''
{{OutputEnd}}
{{PageSeeAlso}}
* [[WRITE (file statement)|WRITE #]]
* [[INPUT (file statement)|INPUT #]]
* [[PRINT]], [[PRINT (file statement)|PRINT #]]
* [[PRINT USING]]
{{PageNavigation}}