Difference between revisions of "MC-Basic:UTFSTRING$"
m (Text replace - "''<number>''" to "<''number''>") |
m (Text replace - "''<return value>''" to "<''return value''>") |
||
Line 15: | Line 15: | ||
|TYPE= | |TYPE= | ||
− | '' | + | <''return value''>: String<br> |
<''number''>: Long<br> | <''number''>: Long<br> | ||
''<string>'': String<br> | ''<string>'': String<br> | ||
Line 21: | Line 21: | ||
|RANGE= | |RANGE= | ||
− | '' | + | <''return value''>: string<br> |
<''number''>: 0 to MaxLong<br> | <''number''>: 0 to MaxLong<br> | ||
''<string>'': string<br> | ''<string>'': string<br> |
Revision as of 09:37, 20 March 2014
UTFSTRING$ produces a new UTF-8 string with the specified number of symbols. Each symbol is the first symbol of the specified string argument or the specified Unicode value.
Syntax
UTFSTRING$(<number>,<string>)
UTFSTRING$(<number>,<Unicode_value>)
Availability
Available since version 4.5.10
Type
<return value>: String
<number>: Long
<string>: String
<ascii code>: Long
Range
<return value>: string
<number>: 0 to MaxLong
<string>: string
<ascii code>: 0 to MaxLong
Scope
Configuration, Task or Terminal
Limitations
Read only. Input string must be a UTF-8 string.
Examples
Common shared UTF8Str as String of UTF8 = UTF$(196) + UTF$(197)
? UTFSTRING$(10, UTF8Str) ‘ generates a string of 10Ä
? UTFSTRING$(10, 196) ‘ generates a string of 10Ä