Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Takes too long to SEEK
Message
De
05/12/1997 15:48:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Takes too long to SEEK
Divers
Thread ID:
00064114
Message ID:
00064114
Vues:
68
I have a search form that uses the ingrid control in a grid to incrementally search members in out database. (125,000 records in the member table)
The form works beautifully except for one thing: When the pointer is positioned on a record that begins with a letter somewhere in the middle of the list (Doesn't begin with 'A'), Searching for a name beginning with 'A' gives incorrect results:
type: "ABART"
positions the pointer on "BART"
The reason this happens is that the control starts the search string over after a certain timeout value is elapsed, and searching on 'A' takes long enough for the search to time out and start the string over. I can adjust the timeout value (it is currently 1.5 seconds) to accomodate the problem, but that would defeat the purpose of the timeout.
The strange thing is it only takes too long with the letter 'A', and no other letters.

-OK I just did some testing. From the command window, 'A' takes just as long to search as the other letters. This leads me to believe that the delay is the grid repositioning itself.
I have found a user workaround and that is to type 2 'A's when searching for a name that starts with 'A'. The first 'A' lets the search time-out and the second 'A' is searched succesfully.
The delay seems to be only when the grid has to go to the very top, not any other position.
This inconsistency is pretty odd.
Does anybody know a way around it?
Erik Moore
Clientelligence
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform