Difference between revisions of "ScriptEvent:strLeft"

From Mod Wiki
 
(No difference)

Latest revision as of 18:16, 5 November 2007

Parameters

string text -- The string to work on.
integer limit -- The maximum number of characters to return.

Result

string

Supported By

sdSysCallThread

Comments

  • If there are not enough characters in the string, the whole string will be returned instead.

Functionality

Returns a string containing the leftmost characters from the input string, up to the limit specified.