Topic complex |
Table functions |
Function |
access() |
Short |
Specifies the order of access for a table |
Syntax |
ACCESS(db : INTEGER[; Mode : STRING|INTEGER]) : REAL |
Parameter |
db : table handle from OPENDB.
Mode: "Nummer" or -1 for physical order
"Markierung" or -2 for marking list
index name or index number for access via index |
Return |
-2 : access is set on "Markierung" (=marked records)
-1 : access is set on "Nummer" (=physical record number)
0..15 : access is set on corresponding index |
See also: |
|
Description |
If no mode is given, Access() returns the current table access.
The control of Access() is respected by
SUB ... ENDSUB
firstrec()
lastrec()
nextrec()
prevrec()
access() does not return an error. In case of an illegal argument the access won't be changed.
Because of that you should always look at the return value when working with access().
|