Modifying real fields in automatic (was Re: Some Sort of Control From The Browse Screen)
flowersoft at compuserve.com
flowersoft at compuserve.com
Thu Oct 21 22:03:28 PDT 2010
> If you're replacing processing anyway, why not use "-z myinput"?
Because I wanted the user to be able to break out of the browse screen and
update the record under normal input processing.
> Nit: The user never _sees_ that they have left browse mode.
If a tree fall in the forest...
> Well, if you really need to check if the user broke out of update,
How else am I going to take the user out of the browse screen and into
screen 1?
> this works on 4.8:
> ::declare Updating(1,*,g):
> @update::Updating = "y":
> ::screen:
> ::end:
> @entsel:::
> :Updating = "Y":Updating = "" ; mesgbox "Left update with @SK = '" & @sk &
"'":
> ::end:
And this :@sk="brky":mesgbox "Left update with @SK=BRKY" works from
automatic
Besides adding 5 more lines of code, if I use @update in this case I cannot
use "U" to change the value of field 5.
> However, since you're talking about breaking out of browse mode, and not
update mode, why not just check for SK="BRKY" > in @ENTSEL?
> @entsel:@sk = "BRKY":mesgbox "@ENTSEL reached with @SK=BRKY":
> ::end:
This does not work for me. It puts me back to the index search data screen
when I try it.
Look, I'm sure there are at least 50 different and better ways to accomplish
what he wanted to do.
All I'm saying is that the 7-line solution I posted after looking at his
problem for 15 minutes, works and does not break anything as far as I can
tell.
Let's move on to another topic, like why sometimes it is necessary to use
"write" in automatic processing. ;-)
More information about the Filepro-list
mailing list