Look for any PROCREAD or PROCWRITE statements as well in the programs. ----- Original Message ----- From: "John Hester" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, January 25, 2006 4:41 PM Subject: Re: [U2] PROC question
> Bob Woodward wrote: > > Maybe I'm just missing the finer points of PROC processing. I've got a > > MENU proc that's structured like this: > > > > PQ > > 10 C Top of Main Menu > > OA number of lines that display the available menu choices > > ... > > OEnter choice + > > IP: > > IF # A X > > IF A = 1 [PROD.PL PROG1.PROC > > IF A = 1 G 10 > > ... > > IF A = 99 [PROD.PL PROG99.PROC > > IF A = 99 G 10 > > O > > O That is not a valid menu choice. > > O PRESS [ENTER] + > > IP > > G 10 > > > > My problem is when I come back from one of the PROGxx.PROC's, I'm not > > getting the menu choice value back to execute the G 10 command. Instead > > it displays the error message at the bottom. > > As others have pointed out, the problem is likely that your input buffer > is getting cleared. One easy way around this is to change the structure > of your menu proc so you don't have to worry about the input buffer > after the call to the program proc is made. All of our menu procs have > this basic structure: > > PQ > 10 C Top of Main Menu > OA number of lines that display the available menu choices > ... > OEnter choice + > IP: > IF # A X > IF A = 1 GO 100 > IF A = 2 GO 200 > IF A = 3 GO 300 > GO 10 > 100 [PROGRAM PROC > GO 10 > 200 [PROGRAM PROC > GO 10 > 300 [PROGRAM PROC > GO 10 > > We have a proc like this named BLANK.MENU that we just copy and modify > anytime we need a new one. > > -John > -- > John Hester > System & Network Administrator > Momentum Group Inc. > (949) 833-8886 x623 > http://memosamples.com > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
