by nageswaragunupudi » Thu Feb 10, 2011 11:58 am
#1. In case of browsing RDD / TDataBase
(a) If you already have an index on the required expression, assign the index tag name to oCol:cSortOrder := <indexTagName>.
(b) If no index exists on the required expression, you may create a temporary index like
INDEX ON <expression> TAG <temptag> TO <temp> MEMORY
and assign
oCol:cSortOrder := <temptag>
oCol:cOrdBag := <temp>
#2. In case of browsing RecordSet :
Just assign the two column names like:
oCol:cSortOrder := "FIRST,LAST,CITY"
#3. In case of browsing Array:
You need to have your own custom sort function, which returns 'A' if sorted on ascending order or 'D' if sorted on descending order and then assign your function as codeblock to oCol:cSortOrder := { |oCol| <yourfunction> }
Regards
G. N. Rao.
Hyderabad, India