<<

Contents

Search

>>

 

START

 

 

Instruction

 

 

Syntax:

START <Name of Index File> ON ERROR ... END

 

<Name of Index File> = <INDEX FILE>

 

Meaning:

Reads a record from an Index File by the primary key.

 

The record of the specified Index File whose primary key equals or is bigger than the current value of the primary key fields is found and read. In the case of an error the block ON ERROR ... END is executed.

 

Parameter:

Name of Index File

Name of Index File

 

Sample:

/* Read first data record whose NUMBER >= 4711

CUSTOMER.NUMBER = 4711

START CUSTOMER

      ON ERROR ERRORMES = "No data record found with NUMBER >= 4711." +

               STR$(OK) + STR$(OK2) + " " + ERRORTEXT$

      END

 

See also:

Error numbers with Index File accesses

STARTS

READ

READS

READ-NEXT

READS-NEXT

READ-PREVIOUS

READS-PREVIOUS

READ_NEXT_MULTI

READ_PREVIOUS_MULTI

GET_FIRST_RECORD

GET_NEXT_RECORD

SEARCH

WRITE

DELETE

OK

OK2

ERRORTEXT$

EBUS_INDEXKEY$