Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

StrLength

Use this function to calculate the length of a character string.

Syntax

Copy

Syntax

STRLENGTH ("String")             

where:

  • String is a character string, enclosed in double quotation marks.
Copy

Syntax example

NumChars = STRLENGTH ("StringTest")        
Copy

Example

CREATE VARIABLE NumTemp1 AS NUM
SET VARIABLE NumTemp1 = STRLENGTH ("StringTest")        

Published:

StrLength

Use this function to calculate the length of a character string.

Syntax

Copy

Syntax

STRLENGTH ("String")             

where:

  • String is a character string, enclosed in double quotation marks.
Copy

Syntax example

NumChars = STRLENGTH ("StringTest")        
Copy

Example

CREATE VARIABLE NumTemp1 AS NUM
SET VARIABLE NumTemp1 = STRLENGTH ("StringTest")        

For an optimal Community experience, Please view on Desktop