lq-text: LQT_ObtainReadOnlyAccess

API int LQT_ObtainReadOnlyAccess (db) t_LQTEXT_Database *db;

Purpose

Obtains read-only access to the current database. This is called automatically by LQT_Open­Database if appropriate. If the database was previously open for writing, it should be closed first with LQT_Close­Database or LQT_Sync­Database.

Returns

Errors

A corrupt database may cause a fatal or E_BUG error.

See Also: