How to use BY keyword correctly in FOR EACH

Discussão em 'StackOverflow' iniciado por fdantas, Maio 22, 2017.

  1. fdantas

    fdantas Administrator Moderador

    I want to go through the records in descending order by Field4, but when I put in the code BY mybuffer.Field4 DESCENDING I get the error


    After "Field4 DESCENDING" not understandable (247) [translated].
    ​

    FOR EACH mybuffer
    WHERE mybuffer.Field1 = value1
    AND mybuffer.Field2 = value2
    AND mybuffer.Field3 >= value3
    BY mybuffer.Field4 DESCENDING
    USE-INDEX myindex
    NO-LOCK:

    /* do something */
    END.


    What I am doing wrong?

    Continue reading...

Compartilhe esta Página