Caché MultiValue Basic Reference
SETREM
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Positions the remove pointer in a dynamic array.
Synopsis
SETREM position ON dynarray
Arguments
position A positive integer specifying the number of bytes to increment the pointer in the dynamic array.
dynarray A dynamic array in which the pointer is positioned.
Description
The SETREM statement positions a pointer within a dynamic array. This statement is commonly used to position a pointer for the REMOVE or REVREMOVE statements to extract data values from the dynamic array.
You can use the GETREM function to return the character position in dynarray of the SETREM pointer. REMOVE and REVREMOVE also modify this internal pointer so that repeated calls return successive element values.
See Also