Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xgoto()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XGOTO()
Move record pointer to specified physical record position

Syntax
N_XGOTO(<nPosition>)

RDD
Use GOTO or DBGOTO()

Argument
<nPosition> is a physical record number.

Returns
True if successful. False on failure. Use N_XERROR() to get an error code.

Remarks
Moves to the specified physical record in the current table. Use N_XRECNO() 
to get the current physical position of a record.

N_XGOTO() cannot be used for logical positioning in the table since DBFlike 
record numbers have no meaning to Btrieve files. For example, N_XGOTO(3) 
will have an undefined result. It will definitely not go to the third record 
in the table.

See N_XRECNO() for information on Btrieve record pointers.

Example
* Save current record
old_record = N_XRECNO()
* Seek new record in table
N_XSEEK(...)
   .
   .       && Do stuff
   .
* Go back to original record
N_XGOTO(old_record)


See Also: N_XGOTOBOT() N_XGOTOTOP() N_XRECNO()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson