FATS - Fast Access Tree System
Table of Contents
List of Commands
"DK" Delete Keys

"DK" Delete Keys


Command string:

CMND$ = "DK\{RecNo}\{DelFlag}\{FileNo}\{KeyString1}[\{KeyString2}...]"

RecNo Record number
DelFlagSwitch (Y/N)
With set switch ("Y") FATS checks the presence of all transferred primary keys before any are deleted.
By this option the erasing process needs somewhat more time
FileNo File number
KeyString#Key value
[ ]Optional

Purpose:

Deletes the primary keys from the index file.

Description:

This command removes all primary keys that you have specified with the  Create Indexfile (C) command WITHOUT releasing the associated record number.

Parameters returned:

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

Example:

CMND$ = "DK\"+STR$(RECNO)+"Y\1\"+KEYSTR$+"\"+KEYSTR2$

See also:

 "2" Delete Single Key; page 4-8
 "IK" Insert Keys; page 4-40
 "1" Insert Single Key; page 4-6


 

© 2008  GCS Software, Udo Gertz