These process points are accessible from the Events tab of a screen function cycle’s property sheet.

On Entry - The logic to be executed on entering the cycle. It occurs before the format appears or a mode is set. Typical use is variable initialization and setting constraints on selecting a range of records.

Mode - The mode logic. The mode logic is always executed once, after the On Entry logic, and is then executed again whenever the screen mode (Add, Change, Delete, or Lookup) is changed with the Function Keys. Typical use is field initialization and key conditioning.

EOD/Cancel - The logic to be executed when EOD or Cancel is actioned.

You can use the ABORT_EXIT logic command to override the exit that would normally be taken here.

On Sort/Select - The logic to be executed during the sort/select pass. It may be defined for a paging cycle and is performed at sort time. It is typically used to establish selection criteria for the sort.

On Exit - The logic to be executed on exit from the cycle. Typical use is setting communication variables, setting flags, and data manipulation.

Comment on this topic

Topic ID: 500332