FATS - Fast Access Tree System
Table of Contents
List of Commands
"O" Open Indexfile

"O" Open Indexfile


Command string:

CMND$ = "O\{Filename}\{FileNo}"

FileNamefilename, perhaps with an additional path
(e.g. C:/DATEN/ARTICLES.KEY or ARTICLES.KEY)
FileNo File number (1-40)

Purpose:

Makes a index file available for access.

Description:

With this command you open an existing index file with the opening flags defined with the command  Auto Refresh (Y). After the file was opened it can be accessed under the file number you specified. An index file already opened with the same file number is closed before this command is executed. There is no connection between the file handles assigned by the operating system and this file number.

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$ = "&O&C:\ARTICLES.KEY&1". Any character with an Ascii code less then 48 will be accepted.

Parameters returned:

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

Example:

CMND$ = "O\ARTIKEL.KEY\1"

 BASIC Example
 Pascal Example
 C Example


 

© 2008  GCS Software, Udo Gertz