String

From NSB App Studio
Revision as of 20:03, 8 July 2012 by Brendon (talk | contribs) (Created page with "STRING(''number, ''character'') '''Description''' STRING returns a string created by concatenating a given number of a specified character. The required argument, ''number''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

STRING(number, character)

Description

STRING returns a string created by concatenating a given number of a specified character. The required argument, number, is any valid numeric expression. The required argument, character, is a character or string expression whose first character is repeated in the returned string.

Example

REM STRING Example
'STRING createsastringrepeatingacharacter
DIM Message
Message = STRING(10, "Hello World!")
PRINT Message
Message = STRING(10, CHR(ASC("i")))
PRINT Message

Output

HHHHHHHHHH
iiiiiiiiii

Related Items

SPACE