String: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
No edit summary
Line 29: Line 29:


[[Category:Language Reference]]
[[Category:Language Reference]]
[[Category:Strings]]

Revision as of 18:57, 11 September 2012

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 creates a string repeating a character
Dim Message
Message = String(10, "Hello World!")
Print Message
Message = String(10, Chr(Asc("i")))
Print Message

Output

HHHHHHHHHH
iiiiiiiiii

Related Items

Space