LengthString

The LengthString function returns the number of characters in a string.

Syntax

  Copy imageCopy 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".