LengthString

The LengthStringfunction returns the number of characters in a string.

Syntax

  Copy codeCopy code
int LengthString(
  string string
);

Parameters

string

The string whose length in characters is to be returned.

Return values

Returns an integer representing the number of characters in the string. For a null string, the function returns "0".