OpenDTFDatabase Function

Opens a dtF database.

Syntax
result = OpenDTFDatabase( dbFile, blobFile, username, password )

Parameters
dbFile | FolderItem | All the fixed-length fields in the dtF file.
blobFile | FolderItem | All the blob fields in the dtF file.
username | String | Username for the dtF database.
password | String | Password for the dtF database.

Return Value
Result | Database | Database object that refers to the dtF database.

# Notes

OpenDTFDatabase requires the dtfSQL Database plug-in. Place this plug-in in the REALbasic 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.

This function requires the Dtf_PPC shared library be installed in extensions folder (Macintosh).

# Example

Dim db as Database
Dim textdata as FolderItem
Dim blobdata as FolderItem
textdata= GetFolderItem("mydb")
blobdata= GetFolderItem("myblobs")
db=OpenDTFdatabase(textdata, blobdata,"Nancy","Pavlov")
If db.Connect then
//continue with database operations
else
Beep
MsgBox "The database couldn't be opened."
end if

# See Also

Database, DatabaseField, DatabaseRecord, RecordSet classes; OpenDBFCursor function.