Rexx - length String



This method returns the number of characters in the string.

Syntax

length(str) 

Parameters

  • str − The source string

Return Value

This method returns the number of characters in the string.

Example

/* Main program */ 
a = "Hello World" 
say length(a) 

When we run the above program, we will get the following result.

Output

11 
rexx_strings.htm
Advertisements