<<

Contents

Search

>>

 

STARTS

 

 

Instruction

 

 

Syntax:

STARTS(<Number of Key>)  <Name of Index File> ON ERROR ... END

 

<Number of Key>

= <NUM-EXPRESSION>

<Name of Index File>

= <INDEX FILE>

 

 

Meaning:

Reads a record from an Index File by a secondary key.

 

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

 

Parameter:

Number of Key

Number of secondary key (1,...)

Name of Index File

Name of Index File

 

Sample:

/* Read first data record whose NAME$ >= "Smith"

#BACKSLASH_ON

CUSTOMER.NAME$ = "Smith"

STARTS(1) CUSTOMER

   ON ERROR ERRORMES = "No data record found with NAME$ >= \"Huber\"." +

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

   END

#BACKSLASH_OFF

 

See also:

Fehlernummern bei Indexdateizugriffen

START

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$