At the end of the programm all tables are closed automatically.
Nevertheless opened tables use system ressources like memory and file handles and should be closed as soon as they won't be used anymore.
Attention: All write operations made to a table are not buffered by the tdbengine. The changes are directly visible for all users after the operation has finished.
Example 1: OpenDB + ReOpenDB + CloseDB
VAR db : INTEGER
IF db:=OpenDB('database/adressen.dat','',0,0) THEN //read access
..
ReOpenDB(db,15) //enable write access
..
CloseDB(db)
END