Previous Topic: ObjectivesNext Topic: Specifying Function Parameters


Understanding Parameter Usage and Role

You need to assign a usage and role for each parameter to direct the calling and called functions to use the parameter in a particular way.

The Restrictor role is used to restrict which records from a database file will be displayed, changed, or printed by the called function. A Restrictor parameter must be a key field on the access path to which the called function attaches. If there are multiple keys, the parameter sequence must match the key sequence.

You will specify the Restrictor role for the Horse code parameter to restrict the Display Racing results function to show only race entries for a particular horse. In other words, the function can only process database records whose keys match the Horse code parameter.