Delete command...
Chad McWilliams
fpmail at computiprint.com
Wed Jul 7 08:12:43 PDT 2004
Nancy Palmquist wrote:
> Chad,
> I will try using a DELETE in an @wlf and see what happens. I usually
> would not do that. > My DELETE routines are in CALL routines or
> GOSUBs and I can not think of one time I would have put it in an @wlf.
> If it does not work, I will report it to fpSupport.
> Nancy
The case I have is the this: I have a field that accepts a function
key. One of the functions is to delete the record, and in turn delete
the child records associated with it. When the user selected that
function, it triggered the @wlf function for that field which called a
routine that deleted the child records, and then deleted the record they
were currently setting on, followed by an end. When this happened
though, it would never actually delete the record.
I know this could be handled with @keyd (or whatever) while setting on
the record, but not in update mode, but I wanted every function to be
called from within that particular field.
The other option, which many replied with, was to set a flag and then
delete the record after an escape, which worked. But any delete issued
before the escape (or end for that matter) wouldn't work.
Like I said, it really didn't cause me a problem, as I was able to
handle it a different way, but I was curious as to what all of your
thoughts were. I didn't know if this was a bug, or that it was not
intended to work this way. Curiosity mostly.
Thanks,
-Chad McWilliams
More information about the Filepro-list
mailing list