<VARLEN> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
<VARLEN>
Syntax
<VARLEN {varname} >
where:
varname unquoted string
Description
<VARLEN> returns the number of characters in the variable named by
varname. It does not matter what type the variable contents are. If the
variable is a string (quoted, unquoted or parenthetic), the length will
be the number of characters in the string including quotes, spaces or
parentheses. If the variable is numeric, <VARLEN> returns the number of
digits that make up the number. Note that the variable name should not
be enclosed in a <VAR> statement.
See also: <STRLEN>.
Example
&BACK tooshort <LESS <VARLEN <MAKEQUOTED password>> 4>
This causes a jump back to the label tooshort if password is less than 4
characters long.
MPE/iX 5.0 Documentation