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"

See also

General procedures and functions

Личные инструменты