path : path of the file that includes the table
password : Password of the table
code : scrambling code of the table
rights : access rights (sum of):
1 : create new records
2 : overwrite existing records
4 : delete records
8 : create and delete indices
If no acces to the specified table is possible a runtime error occurs.
In this case always the cause of the error (TDB_LastError) should be checked.
The opened table becomes the primary table.
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