I've seen something like this where the index tag has a "FOR" claus, and the first record in the file does not meet the test. Not sure what it was exactly, but I seem to recall we put a "GOTO TOP" in before we did a LOCATE. You might give that a try.
Dan Covill On 2/18/2011 4:54 PM, Sytze de Boer wrote: > This has me really stuffed > > In a particular routine of mine which has never given me grief, its thrown a > really curly one > > blah blah > *in my system I have a variable called sysdate which is based on DATE() > SELECT windiary > USE windiary ORDER 1 > *LOCATE FOR date=sysdate > *Suddenly the system returns error 5 record is out of range > *so I changed it to seek. No error on that > SEEK sysdate > * no problem with this > > IF !FOUND() > GO bott > * but with the seek, it thorws the error HERE > > > Could this be a mismatched CDX file ? > > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

