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_xrecno()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XRECNO()
Determine current record position

Syntax
N_XRECNO()

RDD
Use RECNO()

Returns
Current record position

Remarks
The value returned is an internal Btrieve marker.  It is not a sequential 
record number like in a DBF: you can use it to save and then restore a 
record position, but you cannot use it for sequential movement around the 
file.  For example, RECNO()+1 is valid for a DBF, but has no meaning in a 
Btrieve file.

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


See Also: N_XGOTO()

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