Navigation: Function Reference > General Utility Functions > length()

length()

Top  Previous  Next

length( source: String ) : Integer;

length( source: Array ) : Integer;

 

Returns either the number of characters in source (String) or the number of elements in source (Array).

 

Parameters

 

source

string or array type

 

var s1: string;

var len: integer;

 

s1 := 'This is a long string';

len := length( s1 );