EXTENT function
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
This function returns the size (extent) of an array field or variable as an INTEGER value. More specifically, it returns:
- The number of elements for a field or variable defined as a determinate array
- The Unknown value (
?) for a variable defined as an indeterminate array with no size - The size that has been set for a variable defined as an indeterminate array
- Zero for a field or variable that is not an array
Note: The EXTENT function corresponds to the EXTENT
attribute.
Syntax
|
- array
- Any array field or variable.
Example
In the following example, the EXTENT function is used to set the limit of a DO loop that cycles through all elements of an array:
r-arrext.p
|
See also
DEFINE VARIABLE statement, ENTRY function, EXTENT attribute, EXTENT statement, VAR statement