No, what Buddy was illustrating is if you put a "LABEL DONE" at the end of 
your program.   "GOTO" will advance to the corresponding "LABEL".   You could 
easily replace the "goto done"  with "return".   This will terminate the 
program.   Of course, before doing the "return" you should clear your 
variables, 
etc...

An example of the goto filled out:


  IF yourVariable IS NULL or yourVariable = '[Esc]' THEN
    GOTO done
  ENDIF

  -- code would go here to process if yourVariable has a value

  LABEL done
  CLEAR VAR yourVariable
  RETURN



Karen

 
> Buddy,
> 
> My variables are already defined: The Start Date is set to the current 
> date, and the End Date is set to the current date + 1. Are you basically 
> saying that the word "done" stops any further commands from being issued 
> within an action? If all I have to do is GOTO done, then I can 
> facilitate the rest of the coding. 'Done' must be an embedded R:BASE 
> pointer?
> 
> Alex
> 
> Walker, Buddy wrote:
> >Alex
> >   You need to check your variable. 
> >
> >    IF yourVariable IS NULL or yourVariable = '[Esc]' THEN
> >      GOTO done
> >    ENDIF
> >
> >Buddy
> >    

Reply via email to