Link to home
Start Free TrialLog in
Avatar of Dee
DeeFlag for United States of America

asked on

How to tell if record returned from seek is marked for deletion?

How do I tell if a record returned from a seek command is marked for deletion?


-----------------------------------------------------
set safety off

SELECT scrubFile
INDEX ON PRRecno TAG PRRecno

    USE PullFile EXCL
    SCAN ALL
      *-Search the Scrubfile based on Pullfile.PRRecno = Scrubfile.PRrecno
      IF SEEK(PRRecno, 'scrubFile')

               >> I need to add a condition here:
                       && if the scrubfile row found is not marked for deletion
                                   && Process the Pullfile record
                  && else
                         && delete the pull file record
                  && endif
                              
                        
                           
      ENDIF
    ENDSCAN
   
    *- Pack both tables
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dee

ASKER

Very Simple. Well Yes.  Is Now.

I was so close.   Single quotes to the rescue!  

Lol.

Thank you
You are welcome!