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

From SoftMC-Wiki
Jump to: navigation, search
m (Text replace - "Axystems:" to "")
Line 47: Line 47:
 
|SEE ALSO=
 
|SEE ALSO=
 
* [[MC-Basic:STRING$|STRING$]]
 
* [[MC-Basic:STRING$|STRING$]]
* [[MC-Basic:UTF$br|UTF$br]]
+
* [[MC-Basic:UTF$|UTF$]]
  
 
[[Category:MC-Basic:String Manipulation|UTFSTRIBG$]]
 
[[Category:MC-Basic:String Manipulation|UTFSTRIBG$]]
 
}}
 
}}

Revision as of 12:50, 6 July 2015

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