AEVAL()
Evaluated the subscript element of an array
- Syntax
-
- AEVAL(<aArray>, <bBlock>, [<nStart>], [<nCount>]) --> aArray
- Arguments
-
- <aArray> Is the array to be evaluated.
- <bBlock> Is a code block to evaluate for each element processed.
- <nStart> The beginning array element to evaluate.
- <nCount> The number of elements to process.
- Returns
-
- <aArray> an array pointer reference.
- Description
-
- This function will evaluate and process the subscript elements in <aArray>. A code block passed as <bBlock> defines the operation to be executed on each element of the array. All elements in <aArray> will be evaluated unless specified by a beginning subscript position in <nStart> for <nCount> elements.
- Two parameters are passed to the code block <bBlock>. The individual elements in an array are the first parameter and the subscript position is the second.
- AEVAL() does not replace a FOR...NEXT loop for processing arrays. If an array is an autonomous unit, AEVAL() is appropriate. If the array is to be altered or if elements are to be reevaluated, a FOR...NEXT loop is more appropriate.
- Status
-
- Ready
- Compliance
-
- This function is CA Clipper compliant
- Files
-
- Library is vm
- See Also