Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Controlling sorting in a grid.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00369438
Message ID:
00369968
Vues:
26
Joe,

In addition to Mike's suggestion, see 'More news about VFP7' in Files section. There would be a new function in VFP7.0, which gathers information about all tags in cdx.

>Is there a function that will tell if a tag exists? Input will be the character name of the tag. Returns logical.
>That would save all this looping.
>
>
>>Hi Joe,
>>
>>>>>We have this method SetOrder for our Grid class. In a header.Click() just invoke this.parent.parent.SetOrder(). It's not necessary to specify parameter.
>>>>>
>>>><snip>
>>>>
>>>> tcControlSource=this.ActiveColumn.ControlSource
>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Is this valid in VFP5?
>>>
>>>I think so, but I'm not sure. Check if you have ActiveColumn property in a VFP5.0 Grid. If your header caption is always the same, as the field name, you may use in Header.Click() this.parent.parent.SetOrder(this.caption). You may want to programatically create Header class and substitute Header1 with your Header class in run-time. Check Cetin's two grids class example in File section for futher details.
>>
>>If you want to use UPPER(characterField) in your index, try this syntax in Header.Click():
>>local lcFieldName
>>lcFieldName='upper('+this.caption+')' && Caption should be exactly the same, as Field Namr
>>this.parent.parent.SetOrder(lcFieldName)
>>
>>You can enchance it more..., but you get the idea
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform