David:
The way to do this is:

LABEL TOP
CHOOSE ....
SWITCH (.VBL)
   CASE 1
     RUN ..
     BREAK
   ...
   ...
   CASE 8
     GOTO END
     BREAK
   ENDSW
GOTO TOP
LABEL END
RETURN

YOU HAVE NO
   GOTO TOP
      IN YOUR CODE.

There is NO LOOP.

Jim Blackburn
Kodiak


David Ebert wrote:
> 
> I'm running a form as a top-level menu, passing the selection to a variable
> via an eep, then to a SWITCH..ENDSW block, do some stuff, and return to the
> top-level menu.
> 
> When I run the sequence of command files I'm out to the R> instead of back
> to the menu.  I traced the code from the top, and after the eep I get the
> R>.
> 
> I'm attaching the files (zipped), and would appreciate any help on why this
> is happening.  RStyle liked them.
> 
> Files:
>         mainmenu.rmd - the first command file (to be called from rbase.dat, but not
> used that way yet).
>         button.eep      - eep from form ypmenu.  SET VAR vbutton. (exiting this is 
>where
> I crash)
>         chocli.rmd      - calls the form that contains the eep.
> 
> thanks for your attention.
> 
> Dave
> [EMAIL PROTECTED]

Reply via email to