1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 10:30:36 +00:00
QB64-PE/internal/help/WRITE.txt
SteveMcNeill 33adc04fc4 Add temp folder to repo. It's necessary as well!
Just more initial setting on... nothing much to see here.
2022-04-28 13:39:56 -04:00

39 lines
1.1 KiB
Plaintext

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$ = "Hello"
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,"Hello",3.1415 '' ''
{{OutputEnd}}
{{PageSeeAlso}}
* [[WRITE (file statement)|WRITE #]]
* [[INPUT (file statement)|INPUT #]]
* [[PRINT]], [[PRINT (file statement)|PRINT #]]
* [[PRINT USING]]
{{PageNavigation}}
<