Difference between revisions of "MC-Basic:UTFSTRING$"

From SoftMC-Wiki
Jump to: navigation, search
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:UTFSTRING$}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 9: Line 10:
  
 
|AVAILABILITY=
 
|AVAILABILITY=
Available since version 4.5.10
+
Since Version 4.5.10
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Line 15: Line 16:
  
 
|TYPE=
 
|TYPE=
''<return value>'': String<br>
+
<''return value''>: String<br>
''<number>'': Long<br>
+
<''number''>: Long<br>
 
''<string>'': String<br>
 
''<string>'': String<br>
 
''<ascii code>'': Long
 
''<ascii code>'': Long
  
 
|RANGE=
 
|RANGE=
''<return value>'': string<br>
+
<''return value''>: string<br>
''<number>'': 0 to MaxLong<br>
+
<''number''>: 0 to MaxLong<br>
 
''<string>'': string<br>
 
''<string>'': string<br>
 
''<ascii code>'': 0 to MaxLong
 
''<ascii code>'': 0 to MaxLong
Line 36: Line 37:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Read-Only. Input string must be a UTF-8 string.
+
Read only. Input string must be a UTF-8 string.
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 46: Line 47:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:STRING$|STRING$]]
+
* [[MC-Basic:STRING$|STRING$]]
* [[Axystems:MC-Basic:UTF$br|UTF$br]]
+
* [[MC-Basic:UTF$|UTF$]]
  
[[Category:Axystems:MC-Basic:String_Manipulation|UTFSTRIBG$]]
+
[[Category:MC-Basic:String Manipulation|UTFSTRIBG$]]
 
}}
 
}}

Latest revision as of 10:07, 2 May 2017

Language: English  • 中文(简体)‎

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

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Ä

See Also