dbTalk Databases Forums  

version of btrieve file

comp.databases.btrieve comp.databases.btrieve


Discuss version of btrieve file in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tomek
 
Posts: n/a

Default version of btrieve file - 02-23-2004 , 05:01 AM






I'm looking for the example how to obtain version of btrieve file
I use Visual Basic (API' function BTRCALL wbtrv32.dll)

thanks for help

T.





Reply With Quote
  #2  
Old   
Bill Bach
 
Posts: n/a

Default Re: version of btrieve file - 02-23-2004 , 10:56 AM







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!




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.