guides:programming:programmers_reference_manual:using_case_statements_in_an_mfs_dispatch

Using CASE Statements in an MFS Dispatch Routine

A second method to dispatch within the MFS is to use a CASE block. In this method, the value of CODE is tested in a series of CASE statements to determine the logic to be executed for the operation. For example, this code fragment illustrates a portion of the CASE logic:

BEGIN CASE

CASE CODE = 1

  (read logic here)

CASE CODE = 2

  (read-only logic here)

CASE CODE = 3

  (write logic here)

  (etc.)

END CASE
  • guides/programming/programmers_reference_manual/using_case_statements_in_an_mfs_dispatch.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1