<<

Contents

Search

>>

 

GET_FIELDVALUE

 

 

Function

 

 

Syntax:

GET_FIELDVALUE(<Filename>,<Field Name>)

 

<Filename>

= <STRING-EXPRESSION>

<Field Name>

= <STRING-EXPRESSION>

 

 

Meaning:

Returns the numeric value of an Index File field.

 

<Filename> must contain the name of an Index File. The Index File must be used in the program.

 

<Fieldname> must contain the name of a field of the Index File <Filename>. If <Fieldname> is an alphanumeric field, GET_FIELDVALUE returns as result the value VAL(<Filename>.<Fieldname>).

 

In the case of an error GET_FIELDVALUE returns as result zero and the variable OK contains -1. Otherwise OK = 0.

 

Parameter:

Filename

Name of Index File

Field Name

Name of a field of Index File

 

Sample:

FILE$ = "CUSTOMER"

FIELD$ = "Number.1"

NUMBER = GET_FIELDVALUE(FILE$,FIELD$)

 

See also:

GET_FIELDVALUE$

VAL

OK