String: Difference between revisions
Jump to navigation
Jump to search
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''..." |
No edit summary |
||
Line 1: | Line 1: | ||
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 == | |||
<pre> | <pre> | ||
Rem String Example | |||
' | 'String creates a string repeating a character | ||
Dim Message | |||
Message = | Message = String(10, "Hello World!") | ||
Print Message | |||
Message = | Message = String(10, Chr(Asc("i"))) | ||
Print Message | |||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 24: | Line 24: | ||
</pre> | </pre> | ||
== Related Items == | |||
[[space|SPACE]] | [[space|SPACE]] | ||
[[Category:Language Reference]] |
Revision as of 03:37, 17 August 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