TBrowse() > Instance variables |
Code block that navigates the row pointer of the data source.
Data type: | B | Default: | NIL |
The instance variable :skipBlock must be assigned a code block which navigates the row pointer of the data source. This code block is evaluated in method :stabilize() or :forceStable(). The code block must accept one numeric parameter which is the number of rows the row pointer must be changed during a single stabilization cycle. The return value of :skipBlock must be numeric as well. It tells the Tbrowse object how far the row pointer of the data source was actually skipped.
When the data source is a database file, a typical code block for :skipBlock is:
oTBrowse:skipBlock := {|nSkip| DbSkipper(nSkip) }
This code block calls the utility function DbSkipper() which navigates the browse cursor upon request of a TBrowse object.
http://www.xHarbour.com