PreviousNextIndex

EXTENT statement

Fixes the extent (number of elements) for an unfixed indeterminate array variable or parameter. ABL treats the fixed indeterminate array as a determinate array consistent with its data type.

Syntax

EXTENT ( array ) = expression [ NO-ERROR ] 

array
expression
NO-ERROR
Example

The following example defines an unfixed indeterminate array variable and fixes its dimension using the EXTENT statement:

DEFINE VARIABLE x AS INTEGER NO-UNDO EXTENT. 
MESSAGE EXTENT(x). /* Function returns ? */  
EXTENT(x) = 4.     /* Statement fixes the extent to 4 */  
MESSAGE EXTENT(x). /* Function returns 4 */  

Notes
See also

DEFINE PARAMETER statement, DEFINE VARIABLE statement, EXTENT attribute, EXTENT function, Parameter definition syntax


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex