Thanks to Buddy, Bill, and Karen -

I figured out that what I should have been doing is creating one custom action for each menu choice on my application. I had been using the built-in pre-defined functions and creating one line for each one i needed. It will be more customizable if I create one large "macro" and just code for what I need to accomplish.

Thanks again!

Alex

[EMAIL PROTECTED] wrote:
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