>i will try with FOR, i am facing this problem in network only.
>
>my code give me 99% perfect result, but only some time it is not calculating perfect.
>
>if i made 500 invoices, only 1 or 2 invoice not giving the perfect result.
>
>please explain me some more about
>INDEXSEEK
>
>warm regards,
>mk.
As Help says:
INDEXSEEK( ) returns true (.T.) if a match is found, provides a fast way to search for records without moving the record pointer. Because the record pointer isn't moved, rules and triggers aren't executed. If INDEXSEEK( ) returns true (.T.) indicating that a matching record is found, you can execute INDEXSEEK( ) again with the second parameter lMovePointer set to true (.T.) to move to the matching record.
If you're already in the table, and the order is the tag tou want to seek on, then you don't need the last 2 params. So:
If INDEXSEEK( the_key, .F.)
INDEXSEEK( the_key, .F.)
EndIf
Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.