How do I skip to the next record on a find within a for each progress4gl?

Discussão em 'StackOverflow' iniciado por fdantas, Fevereiro 15, 2016.

  1. fdantas

    fdantas Administrator Moderador

    I've been working on a code that runs a for each and a find inside it, and I need to skip the record found by the find statement if it doesn't match the for each one, but I'm unintentionally skipping the table on the for each.

    for each <table>.
    find <table1> where <table1>.<code> = <table>.<code> no-lock no-error.
    if not avail <table1>
    then next.
    end.


    Instead of skipping <table1> when not found, it's skipping <table>, Is there a way to fix this?

    Version:

    OpenEdge Release 10.2B

    Warning: I'm a newbie at progress

    Continue reading...

Compartilhe esta Página