Fabio,
Ok, now try the same thing with SEEK 5. And then try Seek(5). They don't operate the same way. Setting NEAR ON won't stop Seek() from going to EOF() the way it does with SEEK. Your example below only shows that Setting NEAR ON will work with Seek()
under certain circumstances but not always. That means it's unreliable for any real coding.
Alan
>
>SNIP
>
> The thing is though, that even if Seek() had a 'DESC' parameter,
>>
>Seek() have none DESC parameter.
>
>
>you still couldn't use it to do what you're doing below because SET NEAR also doesn't mean anything to Seek().
>
>SNIP
>>
>Why say you this ? You still have confidence in the documentation of VFP?
>
>Run this:
>
>clear
>CREATE CURSOR myC ( aaa I )
>INSERT INTO myC VALUES (1)
>INSERT INTO myC VALUES (3)
>
>INDEX ON aaa TAG tag1
>
>SET NEAR OFF
>
>GO TOP
>? SEEK(2),aaa,EOF()
>
>SET NEAR ON
>
>GO TOP
>? SEEK(2),aaa,EOF()
>
>
>Fabio