1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How do I Understand the difference between FOR EACH and FOR FIRST?

Discussão em 'StackOverflow' iniciado por fdantas, Abril 15, 2019.

  1. fdantas

    fdantas Administrator Moderador

    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...

Compartilhe esta Página