int KISAMBuildKey(KHAND handle, int path, char *buf, char *key)
Parameter | Type | Purpose |
handle | KHAND | handle of table to be searched |
path | int | index path to which the key applies |
buf | char * | a record buffer in which the key segments have been placed |
key | char * | buffer to receive the constructed key |
KISAM keys can be built out of more than one column. These component columns are called segments and KISAM allows up to 8 segments per key. Functions that access records by key need a key built in a buffer. This is best done by updating the relevant columns in a record buffer buf then calling this function to concatenate them into a key buffer key. The buffer passed must be big enough to hold the key. The path number for the index is required.