table.LOGICALRECORD_SET Function
Syntax
Result_Flag as L = table.LogicalRecord_Set(N recno )
Arguments
- Result_Flag
.T. = Indicates that the record pointer was successfully set to Recno. .F. = Record pointer could not be set to Recno.
- recno
The number of the logical record to point to.
Description
Sets the record pointer to a logical record number in the current sort order. Returns .t. if the requested logical record number exits, else .f.
Discussion
The <TBL>.LOGICALRECORD_SET() method sets the record pointer to a specified logical record number in the current sort order.
Example
dim tbl as P dim inx as P tbl = table.open("customer") tbl.LogicalRecord_Set(1) ui_msg_box("First record", "The first record is " + tbl.recno()+ " for " + tbl.Lastname) tbl.LogicalRecord_Set(2) ui_msg_box("Next record", "The next record is " + tbl.recno()+ " for " + tbl.Lastname) query.order = "customer->Lastname" inx = tbl.query_create() tbl.LogicalRecord_Set(1) ui_msg_box("First record", "The first record is " + tbl.recno()+ " for " + tbl.Lastname) tbl.LogicalRecord_Set(2) ui_msg_box("Next record", "The next record is " + tbl.recno()+ " for " + tbl.Lastname) tbl.close()
See Also