1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 09:45:54 +00:00
QB64-PE/internal/help/SPC.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

35 lines
1.1 KiB
Plaintext

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}} &quot;123456789&quot;
{{Cl|PRINT}} &quot;abc&quot; ; {{Cl|SPC}}(3) ; &quot;123&quot;{{CodeEnd}}
{{OutputStart}}123456789
abc 123
{{OutputEnd}}
{{PageSeeAlso}}
* [[PRINT]], [[PRINT (file statement)|PRINT #]]
* [[LPRINT]], [[STRING$]]
* [[TAB]], [[SPACE$]]
{{PageNavigation}}