{ CDBFapi dbf = new CDBFapi(); if (!dbf || !dbf.libraryLoaded()) return; if (dbf.openDBFfile("c:\\tmp\\example.dbf")) { // your code dbf.closeDBFFile(); } dbf = nil; }