Having Problems with CONTAINS parameter in FOR EACH Commnad

Discussão em 'StackOverflow' iniciado por fdantas, Julho 8, 2015.

  1. fdantas

    fdantas Administrator Moderador

    I have a table JobHead, and I create a Word-Index at PartDescription field in that table, as you see in the program below. I'm looking for the jobs with the word NUCLEAR inside of the PartDescription field. I can't get anything, what am I doing wrong?

    DO:
    OUTPUT TO VALUE("c:\Nuclear.txt").

    FOR EACH JobHead WHERE
    JobHead.PartDescription CONTAINS "NUCLEAR" EXCLUSIVE-LOCK.

    DISPLAY JobHead.JobNum.
    END.

    OUTPUT CLOSE.
    END.

    Continue reading...

Compartilhe esta Página