table.LOGICALRECORD_GET Function

Syntax

Recno as N = table.LogicalRecord_Get()

Description

Gets the current record's logical position in the current sort order

Discussion

The <TBL>.LOGICALRECORD_GET() method returns the current record's logical position in the current sort order.

Example

dim tbl as P
dim inx as P
tbl = table.open("customer")
tbl.fetch_first()
ui_msg_box("First record", "The first record is " + tbl.LogicalRecord_Get()+ " for " + tbl.Lastname)
tbl.fetch_next()
ui_msg_box("Next record", "The next record is " + tbl.LogicalRecord_Get()+ " for " + tbl.Lastname)
query.order = "customer->Lastname"
inx = tbl.query_create()
tbl.fetch_first()
ui_msg_box("First record", "The first record is " + tbl.LogicalRecord_Get()+ " for " + tbl.Lastname)
tbl.fetch_next()
ui_msg_box("Next record", "The next record is " + tbl.LogicalRecord_Get()+ " for " + tbl.Lastname)
tbl.close()

See Also