TrimLeft and TrimRight (String functions)

From m204wiki
Revision as of 12:53, 5 February 2011 by Alex (talk | contribs)
Jump to navigation Jump to search

Trim bytes from left or right of string (String class)

[Introduced in Sirius Mods 7.9]

These methods remove a specified number of bytes from the left or right end of a string.

Syntax

%outString = string:TrimLeft( amount)

%outString = string:TrimRight( amount)

Syntax terms

%outStringoutString
string String object
amount Number object

Usage notes

Examples

See also