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

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:RIGHT$ to MC-Basic:RIGHT$: Global renaming of Axystems: namespace into (Main):)
Line 54: Line 54:
 
* [[MC-Basic:MID$|MID$]]
 
* [[MC-Basic:MID$|MID$]]
  
[[Category:Axystems:MC-Basic:String_Manipulation|RIGHT$]]
+
[[Category:MC-Basic:String Manipulation|RIGHT$]]
  
 
}}
 
}}

Revision as of 09:17, 22 May 2014

RIGHT$ returns the specified number of characters from the right-hand side of the string.

In UTF-8 supporting versions 4.5.1 and higher NULL characters are no longer cut

out from strings, resulting in a different behavior:

Len of Chr$(0) is 1:

In former versions NULL characters could not appear in the middle of strings, since

the concationation process cut these characters from the resulting string.

Syntax

RIGHT$(<string>,<expression>)

Availability

All versions

Type

<return value>: String
<string>: String
<expression>: Long

Range

<return value>: String
<string>: String
<expression>: 0 to MaxLong

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

Test=”This string is too short”

-->PRINT RIGHT$(Test,4)
 hort

See Also