FATS - Fast Access Tree System
Table of Contents
List of Commands
"IK" Insert Keys

"IK" Insert Keys


Command string:

CMND$ = "IK\{RecNo}\{FileNo}\{KeyString1}[\{KeyString2}]"

RecNo Record number
FileNo File number
KeyString#Key value
[ ]optional

Purpose:

Insert primary keys.

Description:

This command inserts the primary keys of the specified data record ("RecNo") into the index file. The number of keys included in the command string must equal the number of primary keys you specified in the  Create Indexfile (C) command.
The length of the transferred keys may not exceed the maximum key length specified with the Create Indexfile command. Variable length keys will be padded with the Ascii char 0 to the maximum key length.

Parameters returned:

ERRORCODE:Errorcode or 0 (no error)
RECNO:Undefined
FATSKEY:Undefined

Example:

CMND$ = "IK\"+STR$(RECNO)+"\1\"+KEY1$+"\"+KEY2$

See also:

 "BK" Build Keys; page 4-16
 "DK" Delete Keys; page 4-23
 "1" Insert Single Key; page 4-6
 "2" Delete Single Key; page 4-8
 "C" Create Indexfile; page 4-18


 

© 2008  GCS Software, Udo Gertz