Like other have suggested, I thing the best and easy solution is using scopes.
If you still don't want to use scope, can do it this way.
...
oBrw:bGoTop := { || TopFil( cAlias, cClave ) }
oBrw:bGoBottom := { || Botfil( cAlias, cClave ) }
oBrw:bSkip := { | n | SkipFil( cAlias, cClave, n ) }
...
//---------------------------------
FUNCTION SkipFil( cAlias, cKey, nReg )
//---------------------------------
LOCAL nNext := 0
DEFAULT nReg := 1
IF nReg = 0 .OR. ( cAlias ) ->( LastRec() ) = 0 .OR. ! ( &( ( cAlias ) ->( IndexKey( 0 ) ) ) = cKey )
( cAlias ) ->( DBSkip( 0 ) )
ELSEIF nReg > 0 .AND. ( cAlias ) ->( RecNo() ) <> ( cAlias ) ->( LastRec() ) + 1
DO WHILE nNext <= nReg .AND. ! ( cAlias ) ->( Eof() ) .AND. &( ( cAlias ) ->( IndexKey( 0 ) ) ) = cKey
( cAlias ) ->( DBSkip() )
nNext ++
ENDDO
( cAlias ) ->( DBSkip( - 1 ) )
nNext --
ELSEIF nReg < 0
DO WHILE nNext >= nReg .AND. ! Bof() .AND. &( ( cAlias ) ->( IndexKey( 0 ) ) ) = cKey
( cAlias ) ->( DBSkip( - 1 ) )
nNext --
ENDDO
IF ! Bof()
( cAlias ) ->( DBSkip() )
ENDIF
nNext ++
ENDIF
RETURN ( nNext )
//--------------------------
FUNCTION TopFil( cAlias, cKey )
//--------------------------
( cAlias ) ->( DBSeek( cKey, .T. ) )
RETURN NIL
//--------------------------
FUNCTION BotFil( cAlias, cKey )
//--------------------------
( cAlias ) ->( DBSeek( Ultima( cKey ), .T. ) )
( cAlias ) ->( DBSkip( - 1 ) )
RETURN NIL
//-----------------------
FUNCTION Ultima( xValue )
//-----------------------
LOCAL cType := ValType( xValue ), xNext
DO CASE
CASE ( cType == "C" )
xValue := Stuff( xValue, Len( xValue ), 1, ;
Chr( Asc( Right( xValue, 1 ) ) + 1 ) )
CASE ( cType == "N" )
xValue ++
CASE ( cType == "D" )
xValue ++
ENDCASE
xNext := xValue
RETURN( xNext )