Tomek wrote:
Quote:
I'm looking for the example how to obtain version of btrieve file
I use Visual Basic (API' function BTRCALL wbtrv32.dll) |
Assuming that you already have the API calls working:
BOpen(filename)
BStat(buffer)
BClose()
The STAT call (op=15) will return all of the information about the
Btrieve file. Note that the manual calls for the following parameters
on this call:
- Set the Operation Code to 15.
- Pass the Position Block for the file.
- Indicate a Data Buffer to hold the statistics defined for the file.
- Specify the Data Buffer Length, which must be long enough to hold the
file statistics. (For more information, see Table 317 and Table 318.)
- Specify a Key Buffer that is at least 255 characters long.
- Set the Key Number as follows:
Specify 0 to exclude file version and unused duplicate pointers
information. Parse the returned Data Buffer as shown in Table 317.
Specify -1 (0xFF) to include file version and unused duplicate pointers
information. Parse the returned Data Buffer as shown in Table 318.
In your case, you'll need to set the Key Number to -1 on the call, then
parse the returned data buffer according to the table.
See the SDK on-line manuals for more details.
Goldstar Software Inc.
Building on Btrieve(R) for the Future(SM)
Bill Bach
BillBach (AT) goldstarsoftware (DOT) com
http://www.goldstarsoftware.com
*** Pervasive.SQL Service & Support Classes ***
Chicago: March, 2004: See our web site for details!