MenuRecompile (Create Custom Menu for Recompiling Program)

The MenuRecompile instruction is used to create a custom menu item for recompiling a program after making changes to one or more Constant Table values.

Syntax

MenuRecompile ( "CompileString", CompileVar )

MenuPick (No, Yes)

(where No has been declared as False, and True has been declared as Yes elsewhere in the program)

Remarks

The MenuRecompile instruction must appear within a custom menu declaration (DisplayMenu/EndMenu). It is used along with the MenuItem and MenuPick instructions to create a custom menu item with a pick list for changing values in a constant table (ConstTable/EndConstTable). Typically a user must enter a value manually for a constant table value. The pick list provides a more convenient and less error-prone way to enter new values.

When used in this capacity, MenuItem's MenuVariable parameter should be the name of the constant defined in the constant table for which a pick list will be created. MenuPick's first Item should be the name of the constant, as well. MenuRecompile, followed by MenuPick, is then used to save the changes to the constant table and recompile.

Parameters

CompileString (Menu Name)

A line of text that will be used for the recompile menu item in the custom menu. Up to 11 characters will be displayed for the menu item in the custom menu, and up to 21 characters will be displayed as a header for recompile yes or no pick list.

Type: String

CompileVar (Compile Variable)

A Boolean variable that is evaluated to determine whether or not the program should be compiled. This variable is set when Yes or No is selected from the recompile menu, or it can be set by some other means in the program.

Type: Boolean variable