UPDATE (Was Re: Bad User)
Jay R. Ashworth
jra at baylink.com
Fri Jul 16 10:49:41 PDT 2004
On Fri, Jul 16, 2004 at 01:25:17PM -0400, Kenneth Brody wrote:
> "Jay R. Ashworth" wrote:
> > On Fri, Jul 16, 2004 at 10:12:43AM -0700, Steven Waters wrote:
> > > I have a user that keeps messing up one of our
> > > files. Is there a way to keep this user from updating
> > > for example;
> > >
> > > @keyU if username eq "Bad"
> > > then end
> >
> > I believe you need to do
> >
> > @keyu:::
> > :username eq "bad":end:
> > ::update:
> >
> > Update never returns, right guys?
>
> Wrong use of "update":
Yeah.
I was close... :-)
> > The UPDATE command puts the user into update mode automatically and/or
> > conditionally from automatic processing. In effect, it presses "U" for
> > the user.
>
> You want "screen", probably followed by a goto to the first line, to make
> sure that "normal" processing takes place upon saving the record.
>
> Also, if there isn't currently any @keyU processing, I would suggest using
> @UPDATE instead:
>
> @update If: username = "bad"
> Then: errorbox "Sorry." ; end
> If:
> Then: screen ; goto TheTop ' "TheTop" is the label of line 1
Assumeing his filePro is new enough; when did @UPDATE happen? 4.8?
Cheers,
-- jra
--
Jay R. Ashworth jra at baylink.com
Designer Baylink RFC 2100
Ashworth & Associates The Things I Think '87 e24
St Petersburg FL USA http://baylink.pitas.com +1 727 647 1274
"You know: I'm a fan of photosynthesis as much as the next guy,
but if God merely wanted us to smell the flowers, he wouldn't
have invented a 3GHz microprocessor and a 3D graphics board."
-- Luke Girardi
More information about the Filepro-list
mailing list