when field processing

Bill Vermillion fp at wjv.com
Tue Aug 10 09:55:34 PDT 2004


Shakespeare wrote plays and sonnets that will last an eternity, 
but on Tue, Aug 10 09:45 , Jeremy Anderson wrote:" 

> Is there a label for when-field processing that will determine
> if the record is being saved?

> I can add in the @sk="SAVE" test to _every_ @wlfXX label, but
> that's a bunch of work.

Your @wlfXX should be executed when you leave that field.
Maybe I'm not undestanding what you say.

But on process tables that I used with @sk="SAVE" it was always
aways part of an if/then statement and the then did all the cleanup
I needed to do.  So if you need to make sure certain things are
processed, you could test for the save key and then perform a
series of gosubs to processes you wish to ensure are done, and then
do the end.

> It'd be a lot nicer from my point of view if I could just set up
> @wsr:if @sn="ordchg"; form "Psliprpt";end

> (Where @wsr means "When Saving Record")

You could do that right after the save.  From the top of my head -
where it escape more easily along with the hair.

If: @sk="SAVE"
Then: gosub frogpong; end
.... code ...
frogpond:If: @sn="ordch"
Then: form "Psliprpt"; return

And be sure to add a return if @sn is not 'ordchg'

-- 
Bill Vermillion - bv @ wjv . com


More information about the Filepro-list mailing list