nRegLogical displacement; default 1.
AdvPL GuideDBSkip( [nReg] ) --> NilMoves forward or backward through logical record order.
DBSkip follows active order, filter and deleted-record settings. Default movement is one; negative counts move backward. Beyond the end, EOF indicates no valid record; do not read fields there. Moving before the start sets BOF. Never substitute magic RecNo numbers for boundary tests because RDD conventions differ. EDTRB identifies only an owned test table already open with the required schema and permissions; examples are not intended for standard tables. (TOTVS, n.d., ref. 1)
DBSkip( [nReg] ) --> NilnRegLogical displacement; default 1.
Nil; not a logical success indicator.
#Include "Protheus.ch"
User Function Ed340()
If Select("EDTRB") > 0
If !EDTRB->(Eof())
EDTRB->(DBSkip(1))
// Check again after movement.
ConOut(cValToChar(!EDTRB->(Eof())))
EndIf
EndIf
Return NilReports a valid record after one forward movement without exposing fields. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.