DISPLAY in auto
Kenneth Brody
kenbrody at bestweb.net
Tue Jul 20 21:47:48 PDT 2004
"Jay R. Ashworth" wrote:
>
> In some automatic processing, I'm doing this:
>
> :2 ne "":lookup hdr=passhdr k=2 i=1 -nx:
> :hdr:display 8; sleep "5"; exit "1":
>
> Repeated for fields 3 through 8.
>
> The lookup part works correctly, but after switching to screen 8 (also
> correctly), it never exits. I'm testing $? in the calling filepro menu
> script to decide to skip some posting code, and it's never "1", even if
> I eXit by hand.
>
> Am I doing something wrong here? The manuals seem to suggest that that
> code fragment ought to do what I want.
"Works fine here." (5.0.12 and 5.0.13)
Out of curiosity, if you remove the DISPLAY, does it work? (If not,
then the DISPLAY is irrelevent.)
========== automatic
::input popup yn(1,yesno) "EXIT from auto? ":
:yn = "y":display (@sn) ; exit "2" ; errorbox "Oops! It didn't exit from auto!":
:yn = "y":errorbox "Big oops! How did I get here in auto?":
::end:
========== input
::end:
@entsel::show "Press \{X} to EXIT from input prc":
::end:
@keyX::input popup yn "EXIT from input? ":
:yn = "y":exit "3" ; errorbox "Oops! It didn't exit from input!":
::end:
==========
--
+-------------------------+--------------------+-----------------------------+
| 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