Break (config): Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
For disambiguation purposes, see also [[Break]] Command.
For disambiguation purposes, see also [[Break (command)]].


The '''Break''' [[config]] specification can now be used to specify the frequency with which Business Rules! checks keyboard input for [[Ctrl-A]] or function key ([[ON FKEY]]) operations.
The '''Break''' [[config]] specification is used to specify the frequency with which Business Rules! checks keyboard input for [[Ctrl-A]] or function key ([[ON FKEY]]) operations.


The syntax of the BREAK spec is as follows:
The syntax of the BREAK spec is as follows:
Line 17: Line 17:
  BREAK 1
  BREAK 1


The BREAK spec may also be executed within a program through use of the CONFIG command. This example would override the BRConfig.sys file's BREAK specification and cause keyboard input checking to occur after every six lines are executed:
The BREAK spec may also be [[execute]]d within a program through use of the [[CONFIG]] command. This example would override the BRConfig.sys file's BREAK specification and cause keyboard input checking to occur after every six lines are executed:


  10000 EXECUTE "CONFIG BREAK 6"
  10000 EXECUTE "CONFIG BREAK 6"

Latest revision as of 20:12, 27 July 2015

For disambiguation purposes, see also Break (command).

The Break config specification is used to specify the frequency with which Business Rules! checks keyboard input for Ctrl-A or function key (ON FKEY) operations.

The syntax of the BREAK spec is as follows:

The lines parameter indicates the number of program lines that should be executed before keyboard input is checked for a Ctrl-A or function key operation. Please note that lines refers to the amount of numbered program lines, not the number of statements (a single line can contain several statements). Also, note that the system breaks after the specified number of lines are executed; lines which are not executed (DIM, for example), are not included in the break count.

The start-up default for the BREAK spec is 8. Business Rules! checks the input buffer before execution of every line. Using a value greater than 8 will normally have very little impact on overall program performance and should not be used.

BREAK 8 

The following BREAK spec would cause Business Rules! to check keyboard input after execution of every program line:

BREAK 1

The BREAK spec may also be executed within a program through use of the CONFIG command. This example would override the BRConfig.sys file's BREAK specification and cause keyboard input checking to occur after every six lines are executed:

10000 EXECUTE "CONFIG BREAK 6"