T
Thiru Malai
Guest
I am new to progress and I would like to know what's the difference between FOR EACH and FOR FIRST. I tried to know but don't get understandable and acceptable reason. I have written a small query and got same result.Let me share
DEFINE TEMP-TABLE tt_data
FIELD womf AS CHARACTER
FIELD pomf AS CHARACTER.
CREATE tt_data.
ASSIGN
tt_data.womf = "BlockCar"
tt_data.pomf = "Whitecar".
FOR EACH tt_data.
DISPLAY tt_data.womf.
END.
FOR FIRST tt_data.
DISPLAY tt_data.womf.
END.
if my query is wrong then please give me an example to understand the difference please. I need to use FOR FIRST.
Continue reading...
DEFINE TEMP-TABLE tt_data
FIELD womf AS CHARACTER
FIELD pomf AS CHARACTER.
CREATE tt_data.
ASSIGN
tt_data.womf = "BlockCar"
tt_data.pomf = "Whitecar".
FOR EACH tt_data.
DISPLAY tt_data.womf.
END.
FOR FIRST tt_data.
DISPLAY tt_data.womf.
END.
if my query is wrong then please give me an example to understand the difference please. I need to use FOR FIRST.
Continue reading...