Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetOrder not working
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00092325
Message ID:
00092719
Views:
22
>>In Portuguese we have some accented words (like José). When I'm indexing my view, I use a function that changes all accented character with the unaccented one, so TiraAcento("José") returns "Jose". So my index is TiraAcento(Upper(nm_employee)), for example. What should I do to have my grid columns sortable ?
>>
>
>Check out the section in the Developer's Guide "Changing the Order of Records in a Grid".
>
>If you have created a persistent index on the view in ADataEnv.prg

Yes

>
>In the Header's Click() event call the SetOrder routine with the name of the index:
>
>This.Parent.Parent.SetOrder()
>
>Regards,

The problem is that you have to pass a ControlSource parameter and not a tag name. The sintax is :

This.Parent.Parent.SetOrder()

Did you understand ?

Regards,
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform