Summary [ HP ALLBASE/4GL Developer Self-Paced Training Guide ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Self-Paced Training Guide
Summary
In this lesson you created a calculated item. Calculated items have the
following properties.
* A calculated item is similar to a variable, except that its value
is determined by executing a function every time the calculated
item is referenced.
* Calculated items can be simple calculated items, or extended
calculated items. In the simple form, the value of the item is
determined by a single CALC command. In the extended form, the
value of the calculated item is determined by a function
containing more than one command, or containing a command other
than a CALC command.
* Creating a calculated item automatically creates a function with
the same name. HP ALLBASE/4GL generates the function
automatically when you commit the calculated item.
* The value of a calculated item can only be assigned by the
function with the same name as the calculated item. If you
attempt to move a value into a calculated item from any other
source, the application will abort.
MPE/iX 5.0 Documentation