Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description: Trims a string.

Syntax

Syntax: trim [string,left,right]
Parameters:
  • string: String -
  • left : Number - left offset: counts from left to right, 0 means no letter will be stripped away on the left
  • right: Number - right offset: counts from right to left, 0 means no letter will be stripped away on the right
Return Value: String

Examples

Examples:
_string = "abcde";
_first = trim [_string,0,strlen (_string)-1]; // returns "a"
_last = trim [_string,strlen (_string)-1,0]; // returns "e"
_last3 = trim [_string,2,0]; returns "cde"

Additional Information

See also: select string
Multiplayer: 
Problems: 

Notes