BufListItem (index)

This function returns the buffer handle at the given index. The size of the buffer list is returned by BufListCount. Index values start at zero, and continue up to one less than the value returned by BufListCount.

This example enumerates all the open buffer handles:

cbuf = BufListCount()
ibuf = 0
while (ibuf < cbuf)
    hbuf = BufListItem(ibuf)
    // … do something with buffer hbuf 
    ibuf = ibuf + 1