QMOpen()

Top  Previous  Next

 

The QMOpen() function opens a file.

 

 

Format

 

VBQMOpen(ByVal FileName as String) as Integer

 

Cint QMOpen(char * FileName)

 

ObjFileNo = Session->Open(FileName)

 

where

 

FileNameis the name of the file to be opened. This must correspond to an F or Q-type entry in the VOC of the QM account in which the server is running.

 

 

The QMOpen() function opens a QM database file. The returned integer value is the file number which must be used in all subsequent operations against this file. If the file cannot be opened, the function returns zero. The QMStatus() function can be used to retrieve the error cause.

 

To open a dictionary, the FileName argument should commence with "DICT" and a single space separating this prefix from the file name, for example:

 

DictNo = QMOpen("DICT READERS")

 

 

There is no practical limit to the number of files that can be open at one time.