back to Table of Contents


EndOfBuf (function)

This function will return a boolean value (flag), indicating whether the current buffer (cursor) position in the specified buffer is at the buffer end position (ie. at GetBufLen() + 1) or not. It's similar to the EOF function for file access and mainly useful to check when sequentially reading from the buffer in a closed loop. However, as the current buffer position may change with any buffer operations, this flag is a snapshot of the current state only, hence it shoudn't be cached in a variable, but always used directly.


SYNTAX:

eob% = EndOfBuf% (buf$())

INPUTS:

buf$() (STRING array)


RESULT:

eob% (INTEGER)


back to Table of Contents