× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,

>C+ order by Case When :$Sort = '1' then fld1, fld2, fld3
>C+               When :$Sort = '2'  then fld2, fld3, fld1
>C+               When :$Sort = '3'  then fld3, fld1, fld2

That looks like it might work, but mine is more complicated.  I have 3 sort
fields, each of which can be one of 5 options. I went with the prepare
statement because the when was getting complicated. $SORT had to be
compared against 5 values, and the same for $SORT2 & $SORT3.  I will file
this away for future reference, though. I can see it coming in handy.
Thanks for the help. BTW, my program compiled, but I just got headings. I
have to go in and see what happened.

<===================================================>

Terri Harteau
Felker Brothers Corporation
****************
Paperwork is like kudzu. Both need to be pruned regularly. Usually, a
flamethrower is overkill.      Usually.
****************







As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.