Welcome to the Exelis VIS product documentation center! Here you will find reference guides, help documents, and product libraries. Discover the products including ENVI, IDL, and ENVI LiDAR, and solutions developed by Exelis VIS at www.exelisvis.com.


STRLEN

STRLEN

The STRLEN function returns the length of its string-type argument. If the argument is not a string, it is first converted to string type.

Examples


To find the length of the string “IDL is fun” and print the result, enter:

PRINT, STRLEN('IDL is fun')

IDL prints:

   10

Syntax


Result = STRLEN(Expression)

Return Value


Returns the string length.

Arguments


Expression

The expression for which the string length is desired. If this parameter is not a string, it is converted using IDL’s default formatting rules in order to determine the length. The result is a long integer. If Expression is an array, the result is a long integer array with the same structure, where each element contains the length of the corresponding Expression element.

Keywords


None.

Version History


Original

Introduced



Comments


This page has no comments yet. Be the first one!

© 2013 Exelis Visual Information Solutions