Purpose Returns the length of a string either in logical characters or in bytes. Syntax string_expression The string expression for which the length is to be returned.