En:SubStr
Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.
Содержание |
[править]
Syntax
SubStr(string : String, begin_index : Number, length : Number) : String
[править]
Description
Return string part from <string>, starting from a symbol with a position <begin_index> with the current length <length>;
[править]
Parameters
- string - string. Initial string;
- begin_index - number. Begin index (beginning with 0);
- length - number. ДNew string length which needs to be "cut out" from an initial string;
[править]
Result
The function returns a string which has been "cut out" from an initial string. Data type - String;
[править]
Example
var myValue = "Hello, World !"; var myNewValue = SubStr(myValue, 1, 4); // return value "ello"
[править]