xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

DbGoBottom()

Moves the record pointer to last record.

Syntax

DbGoBottom() --> NIL

Return

The return value is always NIL.

Description

The function moves the record pointer in the current or aliased work area to the last logical record. If no index or filter is set, this is the last physical record. Otherwise, it is the last record in logical order.

Info

See also:Bof(), DbGoto(), DbGoTop(), DbSeek(), DbSkip(), Eof(), GO, INDEX, SET FILTER, SKIP
Category: Database functions
Source:rdd\dbcmd.c
LIB:xhb.lib
DLL:xhbdll.dll

Example

// The example demonstrates the effect of DbGobottom()

   PROCEDURE Main
      USE Customer

      ? Recno(), LastRec()             // result:   1   225

      DbGobottom()

      ? Recno(), LastRec()             // result: 225   225

      ? Eof()                          // result: .F.
      SKIP
      ? Eof()                          // result: .T.

      USE
   RETURN

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