<<

Contents

Search

>>

 

SET_FIELDVALUE

 

 

Function

 

 

Syntax:

SET_FIELDVALUE(<Name of Index File>,<Field Name>,<Value>)

 

<Name of Index File>

= <STRING-EXPRESSION>

<Field Name>

= <STRING-EXPRESSION>

<Value>

= <STRING-EXPRESSION>

 

 

Meaning:

Assigns a value to a field of an Index File.

 

If <Field Name> is a numeric field, the value VAL(<Value>) is assigned to this field.

 

SET_FIELDVALUE returns the result –1 if the <Name of Index File> or the field <Field Name> does not exist, otherwise 1.

 

This function can be used in order to assign values to fields of Index Files that have been opened with ADD_INDEXFILE.

 

Parameter:

Name of Index File

Name of Index File

Field Name

Name of field of Index File

Value

Value to be assigned.

 

Sample:

H% = SET_FIELDVALUE("CUSTOMER","NAME$","Smith")

 

See also:

GET_FIELDVALUE

GET_FIELDVALUE$

GET_FIELDNAMES$

GET_FIELDTYPES$