>>>Is it possible to order the data by clicking on the header of the browse by using ON KEY LABEL or any other method in FOXPRO 2.6
>>>
>>>Rakesh Kothari
>>Place invisible buttons and call a generic routine.
>>Cetin
>Rakesh,
>Sorry, I'm not on the mood today, overlooking question. Invisible buttons would be harder to implement than it sounds.
>With an onkey label you could do :
>
>function setord
>parameters currfld
>for i=1 to tagcount()
> if tag(i)=upper(currfld)
> set order to tag (tag(i))
> exit
> endif
>endfor
>if order()<>upper(currfld)
> set order to 0
>endif
>wait window "Order set to : "+ORDER() NOWAIT
>SHOW WINDOW (wontop()) REFRESH
Cetin
Thanks for the reply. You have save lot of our time and its simple to use for the Enduser.
Rakesh Kothari