Rqb Files

 

<< Click to Display Table of Contents >>

Navigation:  Getting Started >

 

Rqb Files

 

Previous pageReturn to chapter overviewNext page

 

 

 

The Clipper Add-On library Rasql/B has introduced a way of defining btrieve table structures using an external .RQB file. The RQB file should consist of one large string, with for every field in the table a substring of 32 characters with the following layout: <name(20)><type(2)><length(5)>.<dec(2)><fil(1)>; where:

<name> is the field name. Maximum length is 20 characters.
<type> is the two-character code for the field's Btrieve data type. Type codes can be found at the documentation of the Bt_CvType function.
<length> is a five-digit internal field length. Leading zeros may be suppressed and the number may be left-justified. Valid lengths are listed in the chart below. For a variable length field (M or ML), specify the maximum length of the field. Keep this number as low as you reasonably can. Doing so will not affect disk space but it will use memory more efficiently.
<dec> is the number of digits after the decimal point. Leading zeros may be suppressed, and the number may be left-justified. Meaningless for non-numeric fields.
<fil> is a one byte filler that is reserved for future use. Leave blank.
";" is a trailing semicolon and is required.