|
FileName | filename, perhaps with an additional path (e.g. C:/DATEN/ARTICLES.KEY or ARTICLES.KEY) |
KeyLength | Maximum key length (1-240) If you choose to have more than one key for this index file, you may specify the length for each key (separated by a semicolon ";") to conserve diskette space. Otherwise, the maximum length applies to all keys, i.e. every key will occupy the maximum space. |
KeyCount | Number of primary keys (1-200) |
KeyType | Key type (A = Ascii text, I = Integer) |
FileNo | File number (1-40) |
Max. 200 primary keys per data record can be administered in an index file, the max. key length amounts to 240 characters.
Full path names must be specified using forward slashes (/) instead of Backslashes (\), because FATS normally uses the Backslash character as delimiter.
You may change the delimiters by placing the desired character as the first character of the command string, e.g.. CMND$ = "&C&C:\ARTICLES.KEY&1&1&A&1". Any character with an Ascii code less then 48 will be accepted.
ERRORCODE: | Errorcode or 0 (no error) |
RECNO: | Undefined |
FATSKEY: | Undefined |
CMND$ = "C\ARTIKEL.KEY\30\3\A\1"
The next example illustrates the command string required to create a key file with 2 keys of different length. Key 1 has a length of 10 characters and the second key has a length of 30 characters:
CMND$ = "C\ARTIKEL.KEY\10;30\2\A\1"
After successful creating of the file you can access it under the file number 1.
© 2008 GCS Software, Udo Gertz