Returns the number of characters in the a string text expression.

 

Syntax:

value = StringLength( inputString )

OR

value = Len( inputString )     '   Short form usage: "Len"

 

Parameter:

Description:

inputString

String being measured for its text character count.

value

Number of characters, including spaces in the string.

 

Example:

VARIABLES: inputString   TYPE: STRING

 

inputString = "Hello"

value = StringLength( inputString ) ' Returns 5

 

inputString = "Goodbye"
value = Len( inputString )           ' Returns 7

 

value = StringLength( "Hello" )     ' Returns 5
value = Len( "Goodbye" )             ' Returns 7

 

 

 

Results:

See example comments.

 

Links:

 

See Also:

Data Groups and Types

 


Edit Time: 9/25/2017 09:09:58 AM


Topic ID#: 30

 

Created with Help & Manual 7 and styled with Premium Pack Version 2.80 © by EC Software