STRING$

Format

string1=STRING$(number1,number2) <--Format 1
string1=STRING$(number1,string2) <--Format 2

Description

This statement will return a string containing number1 characters of ASCII value number2 (Format1). If format 2 is used, this statement will create a string containing number1 characters. Each of these characters will be the same as the first character of string2.

Example

A$=STRING$(8,111)
After execution of these statements, variable "A$" will contain the string "oooooooo".

Example

A$=STRING$(5,"xyz")
After execution of these statements, variable "A$" will contain the string "xxxxx".

See Also

  • SPACE$