En:Length

Материал из Pocket Fallout для КПК на PDA PC PPC Mobile.

Содержание

Syntax

Length(value : String or Array) : Number 

Description

Function returns string length or array.

Parameters

  • value - string/array. String or array which length is necessary to get;

Result

Function returns string length (symbols count) or array size (elements count). Data type - Number

Example

function mIsNeedOfset(ImageIndex)    
    dim values[2];
    values[0] = 1;
    values[1] = 3;
    for var i=0 to Length(values)-1
        if values[i]==ImageIndex then        
            return true;
        endIf
    endfor    
    return false;
endfunction

See also

General procedures and functions

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