OpenDBFCursor Function

Opens an xBase format file (i.e., a dbf file from dBase) as a RecordSet.

Syntax
result = OpenDBFCursor( file )

Parameters
file | FolderItem | FolderItem that refers to the .dbf file.

Return Value
Result | RecordSet | RecordSet containing the rows and columns in the .dbf file.

# Example

Dim db as RecordSet
db=OpenDBFCursor( GetFolderItem("phone.dbf"))
If db <> Nil then
//proceed with database operations
else
Beep
MsgBox "The database couldn't be opened."
end if

# Note

OpenDBFCursor requires the DBF Database plug-in. Place this plug-in in the Plugins folder. The REALbasic CD includes all database plug-ins and you can always find the most current versions on REAL Software's web site, www.realsoftware.com.

# See Also

Database, DatabaseField, DatabaseRecord, RecordSetclasses; OpenDTFDatabase, OpenCSVCursor functions.