GETREM() |
![]() ![]() ![]() |
The GETREM() function returns the remove pointer position into a string.
Format
GETREM(string)
where
The GETREM() function returns the offset of the remove pointer into string. It is typically used with SETREM to save and restore the remove pointer position. The remove pointer is positioned on the mark character preceding the next fragment to be extracted. It is reset to zero when a new value is assigned to the string.
Example
RMV.PTR = GETREM(S) GOSUB PROCESS.DATA SETREM RMV.PTR ON S
The above code fragment saves the remove pointer associated with string S and restores it after execution of subroutine PROCESS.DATA which might change this remove pointer.
See also: |