Note: BASIC developers: Your application must pass the Data Buffer Length parameter ByRef as a Long integer.
C, COBOL, and Pascal developers: Your application must pass the Data Buffer Length parameter as a pointer to a 2-byte unsigned integer.
Note: BASIC developers: Your application must pass the Key Buffer as a string. If the key value is an integer, your application should convert it to a string using the MKI$ statement before calling the Btrieve API function. If a key consists of two or more segments, you must concatenate them into a single string variable and pass the variable as the Key Buffer.
The transactional interface returns an error if the string variable passed as the Key Buffer is shorter than the key’s defined length. If your application’s first call does not require initialization of the Key Buffer, assign the string variable the value SPACE$(
x), where
x represents the key’s defined length. Until your application assigns some value in BASIC to the string variable, it has a length of 0.
C developers: Your application must pass the Key Buffer as the address of a variable containing the key value. The file BTITYPES.H defines the Key Buffer as a VOID pointer (BTI_VOID_PTR). Your application can then define the Key Buffer type as needed.
COBOL developers: Your application must pass the Key Buffer as a record variable. If the key consists of two or more segments, list them in the correct order as individual fields under an 01 level record. Then you can pass the entire record as the Key Buffer.
Pascal developers: Your application must pass the Key Buffer as a variable containing a key value. If a key consists of two or more segments, use a record structure to define the individual fields in the key.