Function dbtableend
Writing functions:
dbtableend(table)
Where table is the variable returned by the opentable function
This function returns the result of checking whether the read/write pointer is at the end of the table, if so, it returns 1, otherwise 0.