BTRPAGE Environment Variable

The BTRPAGE environment variable specifies the page size that is used when Btrieve files are created. You can set it using the following command:

set BTRPAGE=nnn

where nnn is a byte value in the range 512 to 4096 inclusive, in multiples of 512 bytes. The value must be greater than the record size.

If you do not set BTRPAGE, or you specify a wrong value, the page size defaults to 1024 bytes.

Note: Notes:

  • The page size affects the number of keys you can define in the file and where the keys can occur in the record
  • The Btrieve Record Manager must be loaded with the correct page size
  • You can specify the value of BTRPAGE on a per-file basis using the xfh2btr configuration file