Dennis,  

Don't RETURN out of a WHILE loop.  Use BREAK to just to the first 
command after the endwhile, and put your RETURN there.

Bill

On Fri, 08 Jun 2001 18:24:07 -0400, Dennis Fleming wrote:

>SET VAR vdate = (CTXT(.#date))
>  SET VAR vcdate DATE
>  SET VAR verr = 1
>  WHILE verr <> 0 THEN
>    DIALOG "Set Completion Date to:" vdate=9 vlast 1 AT 12
>    IF vlast = "[ESC]" OR vdate IS NULL THEN
>      RETURN
>    ENDIF
>    SET VAR vcdate = .vdate
>    SET VAR verr = .vderr
>  ENDW




Reply via email to