Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saved table record needs help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01255954
Message ID:
01256240
Vues:
20
>Thanks for your kind offer to help with the CDE!
>
>Have another Codemine question.
>Am using the "Find" Dialog box in the toolbar for a number for CM forms.
>In one of the forms I would like to "ignore case" for one of the fields when doing lookups.
>The field is cName_ID and if could compare it in UPPER case it would be great.
>I looked at the CM 7.5 help and they talk about this.GenTagList() in the cmLookupManager but there are no examples on how to use this SetTag (and all it's options). Maybe this isn't the right place to put code.
>
>All help appreciated.
>Bill


Hey Bill!

The cmLookupManager's GenTagList will generate a list of default lookup keys by scanning all index tags in the current workarea.
You can go to the GenTagList and call THIS.DefineTag() to define custom tag sets.
Or call THIS.SetTag() after DODEFAULT() to modify attributes of default tag list.

Here is an example for you field, in the GenTagList:

THIS.DefineTag("cName_ID")
THIS.SetTag("cName_ID","DisplayName","Name ID")

This will set a nice name for the user in the Find combobox.

For the "ignore case" issue, I don't think you will be able to accomplish this with the default Find Dialog. You will probably have to subclass it and deal with it yourself. I do it a lot.

Cheers.
Ivan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform