home *** CD-ROM | disk | FTP | other *** search
- // TBFwaLst.prg
- //
- // TBfwaLast() - Routine called by goBottomBlock to move to the last
- // record in the database matching the for and while
- // condition, and taking append mode into account.
-
- FUNCTION TBfwaLast(bGoLast, bWhile, bFor, lAppend)
-
- IF lAppend
- GOTO 0
- ELSE
- eval(bGoLast)
- DO WHILE !bof() .AND. eval(bWhile) .AND. !eval(bFor)
- SKIP -1
- ENDDO
-
- IF bof() .OR. !eval(bWhile)
- GOTO 0
- ENDIF
- ENDIF
-
- RETURN NIL