BtrvOpen

Prev Next Home Home Table Of Contents Index

BtrvOpen (FileName,Fields) : Handle

BtrvOpen is used to open the file for access. Since Btrieve files do not store a list of fields you have to pass the same data structure you did when you created the file. If successful, BtrvOpen will return a file handle. This handle will be referenced by all other commands that access this file.


Example:
Var Fields, Handle ReadAscTextFile('FIELDS.TXT',Fields) Handle = BtrvOpen('BBSUSER.BTD',Fields) If BtrvResult<>0 WriteLn "Btrieve Error: " BtrvResult " While Opening File." Endif

Result Codes: 12 - File not Found 46 - Access Denied 85 - File Locked 86 - File Table Full 87 - Handle Table Full

See Also: BtrvClose BtrvCreate

Category: Btrieve

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home