<<

Contents

Search

>>

 

KILL_INDEXFILE

 

 

Function

 

 

Syntax:

KILL_INDEXFILE(<Name of Index File>)

 

<Name of Index File> = <INDEXFILE>

 

 

Meaning:

Deletes an Ebus Index File: All data records of the Index File are deleted.

 

Note: The Index File <Name of Index file> must be open and may not be opened by other users.

 

KILL_INDEXFILE returns the following results:

 

Result

Meaning

1

No error

-1

The Index File <Name of Index File> is not used in the program.

-3

<Name of Index File> is not open.

-4

<Name of Index File> is opened by other users.

-5

An error occurred deleting the Index File. OK, OK2 and ERRORTEXT$ contain the error text.

-6

A runtime error has occurred.

 

Parameter:

Name of Index File

Name of Index File

 

Sample:

H% = KILL_INDEXFILE(CUSTOMER)

IF H% <> 1

THEN ERRORMES = "Error with KILL_INDEXFILE:" + STR$(H%)

ENDIF

 

See also:

DELETE

JDBC_DROP_TABLE

KILL