mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-16 03:54:01 +00:00
b586eafd3b
LINE INPUT will now use the faster method if passed a file handle that has been opened FOR BINARY. As such, the _BLINEINPUT command has been removed. qb64.bas now takes advantage of this for reading from '$include files, at least in Include Manager 1. Some tweaking of internal/source/main.txt was required to get things into a sane state, so I'm holing off changing the compiler any further so the auto-builder can make sure everything's smoothed over. Note: Everything should still compile as normal; I'm just being overcautious.
35 lines
No EOL
1.1 KiB
Text
35 lines
No EOL
1.1 KiB
Text
The {{KW|SPC}} function is used in [[PRINT]] and [[LPRINT]] statements to print or output a number of space characters.
|
|
|
|
|
|
{{PageSyntax}}
|
|
::: '''SPC({{Parameter|count%}})'''
|
|
|
|
|
|
{{Parameters}}
|
|
* ''count'' designates the number of column spaces to move the cursor in a [[PRINT]] statement.
|
|
|
|
|
|
''Usage:''
|
|
* When used in a [[PRINT]] statement,
|
|
** {{Parameter|count%}} is the number of space characters to print, overwriting existing characters.
|
|
** If {{Parameter|count%}} is greater than the number of columns left in the current row, remaining space characters are printed on the next row.
|
|
* When used in a [[PRINT (file statement)|PRINT #]] statement,
|
|
** {{Parameter|count%}} is the number of space characters to output.
|
|
** If {{Parameter|count%}} is less than or equal to zero, the function has no effect.
|
|
|
|
|
|
''Example:'' Using SPC to space a text print.
|
|
{{CodeStart}}{{Cl|PRINT}} "123456789"
|
|
{{Cl|PRINT}} "abc" ; {{Cl|SPC}}(3) ; "123"{{CodeEnd}}
|
|
{{OutputStart}}123456789
|
|
abc 123
|
|
{{OutputEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[PRINT]], [[PRINT (file statement)|PRINT #]]
|
|
* [[LPRINT]], [[STRING$]]
|
|
* [[TAB]], [[SPACE$]]
|
|
|
|
|
|
{{PageNavigation}} |