Syntax:

TEXTLENGTH(text)

  • text: source text.

Return value:

The number of characters of the parameter text.

See Also:

TEXTCUT

Command History:

Added in ScriptFTP 3.1 build October 1th 2008

Example:

# Prints 12
$count=TEXTLENGTH("whatever 123")
PRINT($count)
 
# Prints the file name without the extension
$filename="testing.txt"
$filename_without_extension=TEXTCUT($filename,1,TEXTLENGTH($filename)-4)
PRINT($filename_without_extension)