ADEL()
Delete an element form an array.
- Syntax
- ADEL(<aArray>, <nPos>) --> aTarget
- Arguments
- <aArray> Name of array from which an element is to be removed.
- <nPos> Subscript of the element to be removed.
- Returns
- <aTarget> an array pointer reference.
- Description
- This function deletes the element found at subscript position in the array . All elements in the array below the given subscript position will move up one position in the array. In other words, what was formerly the sixth subscript position will become the fifth subscript position. The length of the array will remain unchanged,as the last element in the array will become a NIL data type.
- Examples
- LOCAL aArray
- aArray := { "Harbour","is","Power" } // Result: aArray is
- ADEL(aArray, 2) // Result: aArray is
- Status
Ready
- Compliance
- This function is CA Clipper compliant
- Files
- Library is vm
- See Also