StrLength

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, and Windows

SecureLogin version:

3.0.4

Type:

Variable Manipulator

Usage:

StrLength [source] destination

Arguments:

[source]

destination

The input variable. If not specified, SecureLogin reads the destination variable, makes the calculations, and writes over it.

The output variable. Also the input variable if no source is specified.

Description:

Counts the number of characters in a variable and outputs that value to the destination variable.

If only a destination variable is specified, the string is read from the destination, then the value is stored back in to it. If a source variable is specified, the string is read from the source, and the calculated value is stored in the destination variable. In this case, the source variable remains unchanged.

Example:

Dialog  
Title "Login"
Ctrl #1
EndDialog
Readtext #301 ?Password
StrLength ?Password ?Length
If ?Length lt 4
 Messagebox "Password is too short"
EndIf