From the Developer's Kit Manual...
To assign a specific Key Number to the key being created, add the
desired key number to 0x80, and place the sum in the Key Number
parameter. If you are rebuilding the system-defined log key (also called
system data), specify 0xFD (that is, key number 125 plus 128).
--------------------------------------------------------------------------------
Note
Key numbers must be unique to the file. They must also be valid. (The
value of each key number must be less than the maximum number of key
segments allowed for the file's page size.)
HTH...
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: November 16-19, 2004: See our web site for details!
Jim Chaffee wrote:
Quote:
Does anyone know how to specify a specific index number when issuing
the Create Index (31) Btrieve command through the API? It seems that
whatever key I specify, it always creates the index as the next
available index number. Thanks for you help! |