QUERY.RECNO_LIST_GET Function
Syntax
Record_List as C = .RECNO_LIST_GET( Count as N [, Value as N ] )
Arguments
- Record_List
A space delimited list of Count record numbers from the query list referenced by . If the count is negative, the record numbers are retrieved from the end of the query list.
- Count
The number of records to return.
- Value
Optional. Default = 1. Every Nth record in the query list is returned. For example, if Count is 100, and Value is 5, a total of 20 record numbers are returned.
Description
Retrieves Count record numbers from the query list.
Discussion
The .RECNO_LIST_GET() method retrieves Count record numbers from the query list. The primary use of the function is in Alpha Anywhere's "Top n Records" and "Top n% Records" queries. If references record number order, a NULL string is returned.
Example
dim tbl as P dim qry as P tbl = table.open("test") query.filter = "ID <> ''" query.options = "D" qry = tbl.query_create() ? qry.recno_list_get(4) = "6 5 4 3 "
See Also