xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

CFTSOpen()

Opens a Full Text Search index file.

Syntax

CFTSOpen( <cFileName>  , ;
          <nBufferSize>, ;
          <nOpenMode>    ) --> nFileHandle

Arguments

<cFileName>
This is a character string holding the name of the Full Text Search index file to open. It must include path and file extension. If the path is omitted from <cFileName>, the file is searched in the current directory. If no file extension is given, the extension .HSX is used.
<nBufferSize>
This is a numeric value specifying the memory buffer size in kB to be used by other CFTS_*() functions for this file (the value 10 means 10240 bytes).
<nOpenMode>
This numeric parameter specifies how the Full Text Search index file is opened. Possible values for <nOpenMode> are:

Open modes for Full Text Search index files
ValueDescription
0READ-WRITE + SHARED
1READ-WRITE + EXCLUSIVE
2READ-ONLY + SHARED
3READ-ONLY + EXCLUSIVE4

Return

The function returns a numeric value greater or equal to zero when the Full Text Search index file can be opened. This value is a handle to the Full Text Search index file and must be used with other CFTS_*() functions.

A negative return value indicates an error condition.

Description

CFTSOpen() is a synonym for function HS_Open(). Refer to HS_Open() for more information.

Info

See also:HS_Add(), HS_Close(), HS_Create(), HS_Next(), HS_Set()
Category: CFTS functions
Source:rdd\hsx\cftsfunc.c
LIB:lib\xhb.lib
DLL:dll\xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe