This function will return the current position of the marker with the given ID. The returned position remains valid until you write or delete data in the respective buffer, which will automatically recalculate all markers to keep track of its positions.
SYNTAX:
mPos& = GetBufMark& (buf$(), markID%)
INPUTS:
buf$() (STRING array)
- This is the array of any existing and initialized buffer, from which you wanna query the marker position.
markID% (INTEGER)
- Any ID number in the range 1 to 100, which identifies the desired marker.
RESULT:
mPos& (LONG)
- On success (positive value) this is the retrieved marker position.
- On failure (negative value) it is any of the error numbers defined in the BufferSupport.bi file (see also Common-Info).