TBrowse() > Instance variables xHarbour Developers Network  

oTBrowse:skipBlock

Code block that navigates the row pointer of the data source.

Info

Data type:BDefault:NIL

Description

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.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe