UPDATE (Was Re: Bad User)
Kenneth Brody
kenbrody at bestweb.net
Fri Jul 16 10:25:17 PDT 2004
"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":
> Syntax:
>
> Then: update
>
> Note: Available on automatic processing tables only.
>
> Version Ref: 3.x
>
> Description:
>
> 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
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody at spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
More information about the Filepro-list
mailing list