Difference between revisions of "SPACE$"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
(Created page with 'The '''SPACE$''' function is used to insert a specified INTEGER number of spaces into a STRING value or variable. ''Syntax:'' SPACE$(number_of_spaces%) * Can be use…')
 
imported>Clippy
Line 9: Line 9:
 
* Can be used in any string value using the + concatenation operator.
 
* Can be used in any string value using the + concatenation operator.
 
* Semicolons or + can be used in a screen [[PRINT]] or [[PRINT (file statement)]].
 
* Semicolons or + can be used in a screen [[PRINT]] or [[PRINT (file statement)]].
 +
* Spaces are often used to erase previous PRINTs from the screen.
  
  

Revision as of 08:08, 6 September 2009

The SPACE$ function is used to insert a specified INTEGER number of spaces into a STRING value or variable.


Syntax: SPACE$(number_of_spaces%)


  • Can be used in any string value using the + concatenation operator.
  • Semicolons or + can be used in a screen PRINT or PRINT (file statement).
  • Spaces are often used to erase previous PRINTs from the screen.



See also: STRING$



Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage