changequote({,}) define({_TITLE_},{Varkon MBS Programmers manual}) define({_SUBTITLE_},{- length - Function}) define({_INDEXLINK_},{index}) define({_STYLE_},{../varkonstyle.css}) include(../../include/header.inc)

length - Function

Description

Returns the number of characters in a string.

Syntax

  n:=length(s);

  int    n;
  string s;

Principal parameters

s - Any string.

Optional parameters

None.

Return value

An INT value in the range 0 <= n <=132.

Comment

The maximum length of a string is 132 characters.

Examples

   n:=length("ABC");   ! Equal to n:=3;

   n:=length(" ");     ! Equal to n:=1;

   n:=length("");      ! Equal to n:=0;
include(../../include/svnversion.inc) include(../../include/footer.inc)