Monikai and Mike, if I'm not wrong, what you are doing is counting mycursor record, but it's ok too for me.
Well, let me change the question. My problem with something like this :
a=1
use mytable && contain: number,name field
set order to number
seek(a)
if found()
iname=name...