[stackoverflow] [progress Openedge Abl] How To Use By Keyword Correctly In For Each

Status
Not open for further replies.
U

user2190035

Guest
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...
 
Status
Not open for further replies.
Top