<<

Contents

Search

>>

 

RECORD

 

 

Instruction

 

 

Syntax:

RECORD(<Name of Index File>) = <Data Record>

 

<Name of Index File>

= <INDEX FILE FIELD>

<Data Record>

= <STRING-EXPRESSION>

 

 

Meaning:

Assigns a new value to all fields of an index file.

 

<Data Record> must be equivalent to the program internal representation of the data record of the Index File.

 

The <Data Record> is assigned to the Index File variables of the Index File. The string is divided from left to right accordingly to the order and length of the Index File fields. If the string is too short, it is filled up with blanks at the end. If the string too long, the surplus characters are cut off.

 

Parameter:

Name of Index File

Name of Index File

Data Record

Program internal representation of the data record of the Index File

 

Sample:

SAVE$ = RECORD$(CUSTOMER) /* Save data record

CUSTOMER.NUMBER = 4711

READ CUSTOMER ON ERROR … END

…

RECORD(CUSTOMER) = SAVE$ /* Restore data record

READ CUSTOMER ON ERROR END

 

See also:

RECORD$

INITIALIZE