EXTENT function
This function returns the extent of an array field or variable as an INTEGER value. More specifically, it returns:
- The constant or variable extent value for a field or variable defined as a determinate array
- The Unknown value (
?
) for a field or variable defined as an unfixed indeterminate array- The extent for a field or variable defined as a fixed indeterminate array
- Zero for a field or variable that is not an array
Note: The EXTENT function corresponds to the EXTENT attribute.Syntax
array
ExampleIn the following example, the EXTENT function is used to set the limit of a DO loop that cycles through all elements of an array:
See alsoDEFINE VARIABLE statement, ENTRY function, EXTENT attribute, EXTENT statement
OpenEdge Release 10.2B
|