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 ("11234")        
Copy

Code example

CREATE VARIABLE NumTemp1 AS NUMSET VARIABLE NumTemp1 = STRLENGTH ("StringTest")

// NumTemp1 will equal 10        

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 ("11234")        
Copy

Code example

CREATE VARIABLE NumTemp1 AS NUMSET VARIABLE NumTemp1 = STRLENGTH ("StringTest")

// NumTemp1 will equal 10        

For an optimal Community experience, Please view on Desktop