Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total mistake in grid
Message
From
27/09/2007 11:53:24
 
 
To
27/09/2007 11:32:18
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01257165
Message ID:
01257221
Views:
26
>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.)     && If find the rec, without moving the pointer
    INDEXSEEK( the_key, .F.)    && Seek to it (moving the pinter)
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform