XArrayDB Reference > XArrayDB Methods > Delete Method (XArrayDB) |
This method deletes the element at position index from the dimension specified by nDim while preserving data and shifting the indexes of the remaining elements appropriately.
nDim is a one-based integer specifying an array dimension.
index is a long integer specifying an element position within the dimension nDim.
The nDim argument should be 1 for rows and 2 for columns. A trappable error occurs if an invalid dimension is specified.
This method is provided for backward compatibility with the XArray object. Both of the following statements delete the row whose index is n.
Similarly, both of the following statements delete the column whose index is n:
Unlike Delete, the DeleteRows and DeleteColumns methods support the deletion of multiple contiguous elements.