How to read a record in code

Read is used to perform reads on a table via an access key or a temporary index.


   Read [ class ] [ key ] [ read_modet [ key_value ] ]

# Read of the 1st recording for which the 1st element of CLE2 is
   # the current days' date, then the date of the previous day, then of the previous one, in the order of the CLE1 key
    Read [TEST]CLE2(1) = date$
    Read [TEST]CLE1 Prev

   # Read of a recording whose key CLE1 is >= "ABCD"
    Read [TEST]CLE1 >= "ABCD"