OpenEdge 4GL Query Concepts (FOR EACH, FIND, GET, INDEX)
OpenEdge 4GL Query Concepts (FOR EACH, FIND, GET, INDEX)
com/s/article/000012195
25-Jul-2013 • Knowledge
1 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
2 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
3 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
((name > "Off The Wall") and (name < "Quick Toss Lacrosse"))
4 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
for each customer where (zip > 50000) and (zip < 60000):
end.
for each customer where (name = "Off The Wall") and (zip > 50000):
end.
for each customer where ((zip > 50000) and (zip < 60000)) or ((zip > 70000) and (zip <
80000)):
end.
5 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
for each customer where (name = "Off The Wall") or (zip = 17030) or (name = "StickyWicket
Cricket"):
end.
6 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
7 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
8 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
reposition q to row 3.
get next q.
9 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
10 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
11 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
12 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
i = 5.
for each customer where (cust-num > i):
display cust-num.
i = 1.
end.
13 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
14 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
15 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
i = 5.
repeat:
find next customer where (cust-num > i):
display cust-num.
i = 53.
end.
16 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
17 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
i = 5.
open query q for each customer where (cust-num > i).
get next q.
display cust-num.
i = 1.
get next q.
display cust-num.
18 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
19 of 20 02/02/2024, 21:45
OpenEdge 4GL Query concepts (FOR EACH, FIND, GET, INDEX) - P... https://community.progress.com/s/article/000012195
Related Articles
(https://www.progress.com/)
(https://www.facebook.com/progresssw) (https://twitter.com/progresssw)
(https://www.youtube.com/user/ProgressSW) (https://www.linkedin.com/company/progress-software)
20 of 20 02/02/2024, 21:45