Previous Topic: Move All

Next Topic: Multiply

Example

In this example, for a given function, the PAR and DB1 contexts contain slightly different groups of fields as listed in the following table:

PAR. Customer code

PAR. Customer name

PAR. Credit limit

PAR. Start date

PAR. Customer group

DB1. Customer code

DB1. Start date

DB1. Customer name

All of the fields in the PAR context could be initialized by a single statement. This is done by inserting a *MOVE ALL function with the following parameters on the Edit Action - Function Details window:

Example (5)

In other words:

.-- : PAR = DB1, CON By name <<< ’--

This is equivalent to:

> USER: Process DBF record :-- :PAR. Customer code = DB1.Customer code <<< :PAR. Customer name = DB1.Customer name <<< :PAR. Start date = DB1.Start date <<< :PAR.Credit limit = CON.*ZERO <<< :PAR. Customer group = CON.*BLANK <<< ’--