Harbour Reference Guide

 

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 <nPos> subscript position in the array <aArray>. All elements in the array <aArray> below the given subscript position <nPos> 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 <aArray> 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

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30