<<

Contents

Search

>>

 

CHANGE_FILETYPE

 

 

Function

 

 

Syntax:

CHANGE_FILETYPE([<Name of Index File>,]<File Type>)

 

<Name of Index File>

= <INDEX FILE NAME>

<File Type>

= <STRING EXPRESSION>

 

Meaning:

With this function the File Type of an index file can be changed from "E" (EBUS) to "J" (JDBC) or the other way around during the program. The File Type "D" (Dbase) cannot be changed.

 

CHANGE_FILETYPE is executed successfully only if the Index File <Name of Index File> is closed, otherwise error –1 is returned.

 

If no Index File is specified, the File Type is changed with all Index Files of the program. Index Files with File Type "D" (Dbase) are ignored.

 

CHANGE_FILETYPE returns the following values:

 

Value

Meaning

 1

No error

-1

The Index File is not closed.

-2

File Type of <Name of Index File> is neither "E" nor "J".

-3

<File Type> is neither "E" nor "J".

-5

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

 

 

Parameter:

Name of Index File

Name of Index File

File Type

File type

 

Sample:

H% = CHANGE_FILETYPE(SALES,"J")

IF H% <> 1

THEN ... Error ...

ENDIF    

 

See also:

Index Files