Try OpenEdge Now
skip to main content
Managing ABL Applications
R-code Features and Functions : R-code structure : Factors that affect r-code size : Action code segment
 
Action code segment
You can reduce the size of an action code segment (for either the main procedure or an internal procedure) by consolidating multiple ABL statements into one. This can also increase the speed of execution, because the interpreter executes only one action instead of several.
For example, you can reduce action code size by combining several consecutive assignment statements into one ASSIGN statement. The following examples require the same amount of expression code:
a = 1.
b = 2.
c = 3.
ASSIGN a = 1
b = 2
c = 3.