CBA_fnc_substr

Description

Retrieves a substring of this instance.

The substring starts at a specified character position and has a specified length.

Parameters

_stringString to extract from [String]
_startIndexIndex to start the substring extraction [Number]
_lengthlength of the extracted substring [Number](Optional) if is not set than from _startIndex to end

Returns

String extracted [String]

Example

_str = ["Fish frog cheese fromage", 5, 4] call CBA_fnc_substr;
// => "frog"

Author

joko // Jonas

Close