<<

Contents

Search

>>

 

SET_FIELDMODE

 

 

Function

 

 

Syntax:

SET_FIELDMODE(<Name of Index File>,<Field Name>,<Mode>)

 

<Name of Index File>

= <STRING-EXPRESSION>

<Field Name>

= <STRING-EXPRESSION>

<Mode>

= <NUM-EXPRESSION>

 

 

Meaning:

Sometimes characters are converted in order to save data in the Index Files. If encoded data in Index File Fields (function ENCRYPT$) or formatted data from the word processor (styled text) are saved, the conversion of data eliminates the encoding. SET_FIELDMODE with <Mode> = 0 has the effect that the data of the specified Index File Field are not converted.

 

At the start of the program Mode 1 applies to all Index File Fields.

 

SET_FIELDMODE returns the result 0 if no error occurred, otherwise –1. In the case of an error the variable ERRORTEXT$ contains the error text.

 

Parameter:

Name of Index File

Name of Index File

Field Name

Name of field of Index File

Mode

0: Data are not converted

<> 0: Data are possibly converted

 

Sample:

H% = SET_FIELDMODE("CUSTOMER","DATA$",0)

IF H% = 0

THEN CUSTOMER.DATA$ = ENCRYPT$("DES","SCHL1234","Hello World")

ENDIF

 

See also:

EBUS_FILEMODE

ENCRYPT$

DECRYPT$