Does it only fail in trace mode? Or does it always fail?
Try RStyle on the code to see it it can tell you what is wrong with the
structure of your code. The choose command looks ok to me.
If nothing else helps try
SET VAR vQ = ''''
SET VAR vTmp = ('Press' & .vQ + ('[Esc]') + .vQ & 'to Return to Menu')
CHOOSE vsub +
FROM #VALUES +
FOR publisher +
FROM publishers +
ORDER BY publisher +
TITLE .vTmp +
CAPTION 'Choose Publisher' +
LINES 20
Dennis McGrath
--- Charles Parks <[EMAIL PROTECTED]> wrote:
> Is the following the correct syntax for a choose statement?
>
> CHOOSE vsub +
> FROM #VALUES +
> FOR publisher +
> FROM publishers +
> ORDER BY publisher +
> TITLE 'Press ''[Esc]'' to Return to Menu' +
> CAPTION 'Choose Publisher' +
> LINES 20
>
> For some reason when I am in trace mode and execute this command it
> gives an error message about Endwhile. I have recently rebuilt my
> database and it still gives that error.
>
> What am I doing wrong?
>
> Thanks,
> Charlie
>