LENGTH statement
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Changes the number of bytes in a raw variable.
Syntax
|
- variable
- A variable of type RAW.
- expression
- An expression that returns an integer.
Example
This procedure takes the number of bytes in the name stored in the variable r1 and truncates it to 2 bytes:
r-rawln1.p
|
Notes
- If variable is
the Unknown value (
?), it remains the Unknown value (?). - If expression is greater than the number of bytes in variable, the AVM appends null bytes so that the length of variable equals the length of expression.