STRING

Top  Previous  Next

Action

Returns a string consisting of m repetitions of the character with ASCII

code n.

 

 

Syntax

var = STRING(m ,n )

 

 

Remarks

Var

The string that is assigned.

N

The ASCII-code that is assigned to the string.

M

The number of characters to assign.

Since a string is terminated by a 0 byte, you can't use 0 for n.

Using 0 for m will result in a string of 255 bytes, because there is no check on a length assign of 0. When you need this let me know.

 

 

See also

SPACE

 

 

Example

Dim s as XRAM String * 15

s = String(5,65)

Print s                                'AAAAA

End