Subject Re: Looping through OrderingItemsNo: how?
Author Marco Menardi <mmenaz@lycosmail.com>
--- In IBObjects@yahoogroups.com, Lucas Franzen <luc@r...> wrote:
>
> Since the OrderingItems look like:
> <USER_FRIENDLY_NAME>=FIELDNAME(s)[;Optional DESCENDING]
> you have to parse the FIELDNAME
>

[cut]

>
> If you can orderting ascending (positive) you should be able to order
> descending, too....
>

It's not always true. Often I manually build the descending, i.e. I want
NAME=AGE, LAST_NAME; AGE DESC, LAST_NAME ASC
so I have to test DESC part too, since I could have written
NAME=AGE, LAST_NAME; AGE DESC, LAST_NAMEXXX ASC
regards
Marco Menardi