General information
Category:
Coding, syntax & commands
>In my grid class I allow users to sort on up to 3 columns by clicking in the headers. I convert all the fields to characters in order to string them together. For example, the code might look something like:
>INDEX ON CharField1+STR(NumField2) TAG temp
>The problem is that if the numeric field contains negative numbers, they don't sort properly by value. How can I get the numbers to sort correctly and yet index on multiple fields?
>
>Thanks,
>Elyse
Maybe you can add a sign flag to the string with iif(x<0,'A','B') or something like that. Then negative values are lower then positive ones.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only