Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SEEK() not working as expected
Message
 
 
À
08/07/2000 18:56:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00389870
Message ID:
00389887
Vues:
14
My only other WAG is to try ALLTRIM() on the search criteria.

If the textbox has no inputmask (or maxlength) proeprty set then it calculates how long the string should be depening on fontmetric and the font set. Specifying an input mask will truncate the value to that length.

However, that doesn't really help in an incremental search situation. You want to search for fields that begin with the value typed in so alltrim is the way to go IMO.

Good luck!

>>This may be trivial but where do change the master tag of the cursor? When you do the indexing, the second index statement changes the master order to cSchool. You have to change the order to CustName at some point.
>
>Don't worry about trivial, I'm looking seriously at all WAGs at this point!
>
>Your point is well taken. There are other controls (option groups) that set the master tag appropriately via SET ORDER TO (tagname) IN (cursor). I have confirmed the proper tag is set immediately prior to the SEEK() call.
>
>The grid RecordSource and the column ControlSources and header Captions are rebuilt on-the-fly depending on the desired search cursor and order.
>>
>>I don't remember if it was available in VFP5 but in VFP 6 there is an optional 3rd parameter to the SEEK() function where you can specify the tag the seek should use.
>
>That feature is in VFP5 as well. However, since the code is semi-generic I'd rather not have to explicitly figure out the right tag for each valid search cursor/tag combination.
>>
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform