Return to Statement


Create Blank Characters Example

This example demonstrates how to create a string with eight blank characters.

   STRING/STR(4,15),S(5)
STR(1)='X'+BLSTR(10)+'Y'
PRINT/STR(1)
HALT

This displays the following string:

 
X Y

BLSTR can be embedded in a string, as shown above, or assigned directly to a variable which causes spaces in a table of values as follows:

   STRING/STR(4,15),S(5)
STR(1)='X'+BLSTR(10)+'Y'
S=BLSTR(5)
STR(2)='2.5'+S+'1.45'
STR(3)='3.6'+S+'1.25'
STR(4)='6.2'+S+'2.27'
PRINT/STR(1)
PRINT/'------------'
PRINT/STR(2)
PRINT/STR(3)
PRINT/STR(4)
HALT

The statements above would display the following table:

 
X Y

------------

2.5 1.45

3.6 1.25

6.2 2.27