length
Gets the current length of a variable.
Available in:
Apps (win) |
Apps (char) |
Reportwriter |
RPC |
Standalone PL |
X |
X |
X |
X |
X |
Syntax
int length (variable)
ident variable
Notes
For character variables, length always returns the number of characters
regardless of char, char2, or when the trimgen -c2
option is used.
Example
Gets the length of the ID for the user executing the application or report.
{
.
.
userid = cuserid();
ulen = length(userid);
.
.
}