skip to main content

Data Division : Embedded Procedures

Embedded Procedures
Embedded Procedures have been implemented to make programming even simpler. It is a way to attach a procedure, a paragraph or a section, to one or more screen section entries and have them activated before the control activation, after the control activation and when a function key is pressed.
Every Screen Section item, no matter if it is a group or a single control, can handle up to three different Embedded Procedures. If an Embedded Procedure is assigned to a group, it is inherited by all the groups or controls that it contains, unless they have their own embedded procedure set.
Before executing any Embedded Procedure, the following data items, defined in "iscrt.def" are updated:
After the last statement of an Embedded Procedure has been executed, the value of accept-control is evaluated and the program behaves as explained below. This means that the programmer can influence the program behavior changing the value of accept-control.
The ACCEPT Statement terminates and the termination value set in control-value is assigned to the special register CRT STATUS.
The ACCEPT Statement terminates and the exception value set in control-value is assigned to the special register CRT STATUS. This is the most common way to simulate that a Function key has been pressed.
The control that has the same ID set in control-id is activated. If controls have the same ID, one of them is activated arbitrarily. Assigning the same ID to several controls is deprecated. If the control with the same ID is either protected, not visible or not enabled, then the cursor is moved on the next available field.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left