DBGOTO()
Position the record pointer to a specific location.
Syntax
DBGOTO(<xRecordNumber>)
Arguments
<xRecordNumber> Record number or unique identity
Description
This function places the record pointer, if working with a .dbf file, in selected or aliased work area at the record number specified by <xRecordNumber>. The position is not affected by an active index or by any enviromental SET condiction.
The parameter <xRecordNumber> may be something other than a record number. In some data formats, for example, the value of <xRecordNumber> is a unique primary key while in other formats, <xRecordNumber> could be an array offset if the data set was an array.
Issuing a DBGOTO(RECNO()) call in a network enviroment will refresh the database and index buffers. This is the same as a DBSKIP(0) call.
Examples
The following example uses DBGOTO() to iteratively process every fourth record: DBUSEAREA( .T., "DBFNTX", "sales", "sales", .T. ) // // toggle every fourth record DO WHILE ! EOF() DBGOTO( RECNO() + 4 ) sales->Group := "Bear" ENDDO
Compliance
Clipper
Files
Library is rdd
Seealso
BOF(), EOF(), DBGOTOP(), DBGOBOTTOM(), DBSEEK(), DBSKIP()
Pingback: Harbour All Functions – D | Viva Clipper !
Pingback: Harbour Database Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !