RDD

DbGoto()

Position the record pointer at an identity

Syntax

Signature
DbGoto( xIdentity ) --> NIL

Arguments

xIdentity

Record identity. Positive values select a record; zero or a negative value moves to the beginning boundary.

Return value

NIL.

Description

DbGoto() positions the current work area's record pointer at the requested physical record identity.

Notes

Filters and deleted-record settings affect whether the selected record is visible.

Example

DbGoto.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   DbGoto( 1 )
   QOut( "Record: " + LTrim( Str( RecNo() ) ) )
   DbCloseArea()

   RETURN

Output

See also