SubString

From Dragon Age Toolset Wiki
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.