Delete command...

Nancy Palmquist nlp at vss3.com
Tue Jul 6 13:50:12 PDT 2004


Chad McWilliams wrote:
> 
> Sorry for the dumb question, but are you able to use the delete command
> in @wlf processing?  When I try the following:
> 
> @wlfm   If:   m eq "d"
>         Then: delete; end
> 
> the record remains, even though the line executes.
> 
> If I instead do an escape and then issue the delete in the processing
> that gets called with the escape, the delete works correctly.
> 
> Am I missing something?
> 
> -Chad McWilliams

I just finished reading the responses so far and I think they fell short
of making it clear what is happening.

DELETE is a peculiar as far as commands go.  It is not executed at the
time it is issued.  It is held in reserve and when you finally do an END
or ESCAPE or whatever makes the end of the record processing happen and
you are about to go to the next record, then the DELETE is done.

So you could put DELETE on line 1, continue to process for 400 lines and
when it got to the END of your logic, then the record is DELETED, not
before.

Does that help?

Nancy

-- 
Nancy Palmquist 
Virtual Software Systems
PHONE: (412) 835-9417			Web site:  http://www.vss3.com



More information about the Filepro-list mailing list