Toggle menu
875
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 03:42, 23 December 2011 by Cg van (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



subString

Retrieves a substring from a source string. The substring starts at a specified character position or at the beginning of the string and has a specified length.

Syntax

subString(source, start)

or

subString(source, start, length)

Arguments

string_exp: Is a string expression.

start: Is a number expression. This is the start character position.

length: Is a number expression. This is the length of the substring.

Return type

string

Examples

print(subString("Hello", 4));

//Result: o

print(subString("Hello", 0, 4));

//Result: Hell

Availability

Version 5.1