RESET_TO_START_TRANSACTION
Syntax
![]()
Command
Mandatory parameter Optional parameter Mandatory keyword Optional keyword |
RESET_TO_START_TRANSACTION
Description
Reverses values and pointers according to the state when the screen was being transmitted.
More precise, when this statement is executed:
- Global or local variables, including query handlers and file items, are set to the initial values.
- layout controls are reset to the value that was sent during the screen transmission.
- Local retained variables are reset to the values that were active at the start of the transmit.
- The database is rolled back to the state on screen transmission (which means that the state reverts to what it was at the beginning of the PROCESS_MAIN).
Diagram
N.A.
Returned value type
None
Parameters
None
Remarks
This statement is only intended to be used in the context of LINC migrations. It should therefore not be used for any other purposes. |
Example
routine process_main
begin_routine
loop for num-copy := 1 to 10
rou_checkrepeat ()
endloop
if not bool-had-error
reset_to_start_transaction
restart_select_next ()
loop for num-copy := 1 to 10
rou_checkrepeat ()
endloop
endif
error := bool-had-error
end_routine
begin_routine
loop for num-copy := 1 to 10
rou_checkrepeat ()
endloop
if not bool-had-error
reset_to_start_transaction
restart_select_next ()
loop for num-copy := 1 to 10
rou_checkrepeat ()
endloop
endif
error := bool-had-error
end_routine