Top, bottom, next, and previous.
ASP uses MoveFirst, MoveLast, MoveNext, and MovePrevious to move a database cursor (a RecordSet).
objRecordSet.MoveNext
The following snippet moves to the second to last record of a given RecordSet object:
objRecordSet.MoveLast
objRecordSet.MovePrevious
ObjectPAL uses home(), end(), nextRecord(), priorRecord() to move a database cursor (works with either a TCursor or UIObject).
TCursor.nextRecord()
These commands send a message to the object. Specifically, they send an action constant using the action command. The above snippet is equivalent to:
TCursor.action(DataNextRecord)
It is handy to with familiar with action constants because not all action constants have an ObjectPAL equivalent comment.
The following snippet uses the active keyword to move to the second to last record of the table attached to the UIObject that currently has focus:
active.end()
active.priorRecord()
You can also use the self keyword to refer to the UIObject your code is attached to.
We hope you are enjoying Mike's cross reference language encyclopedia! Our company is the caretaker of PrestwoodBoards.com where we pay our staff to moderate, edit, and participate. Why? Online participation is fun, we enjoy sharing information, and this is our way of promoting our I.T. services company.
We provide coding, website, and computer tech services. Keep us in mind if you or your company needs help.