SubString

From Dragon Age Toolset Wiki
Revision as of 22:35, 24 February 2010 by BryanDerksen (Talk | contribs) (looks okay, removing tag)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns a substring of a string.

string SubString(
string sString,
int nStart,
int nCount
);
Parameters:
sString
The string to extract the substring from
nStart
The start of the range to extract
nCount
The number of letters to use in the substring
Returns:

Returns the specified substring, returns an empty string on error.

Source:

script.ldf

Description

Returns nCount number of sequential characters from the string sString starting at character number nStart. Like all string operations, the index is 0 based.