f$PGInit
f$PGInit
Initialize all parameters in a parameter group to the initialization values in the parameter table.
With indexed parameter groups, all indices can be initialized at once as well. To do this, an empty pair of brackets (without spaces) must follow the PG name or a 0 as index ( ’PGName[0]’ ).
The parameters which have no initial value are set to either Noval or UNDEF according to the EmptyUndef option entered.
Please note: the name of the parameter group is usually given in string constants, i.e. in quotation marks. If a string parameter is entered - such as in the syntax description - the value of the entered parameter is treated as the parameter group name (as long as it is a string)
Syntax: | f$PGInit( pg ) | ||
| Argument | Type | Meaning |
| Pg | String | Name of the parameter group |
| EmptyUndef | Integer | 1 – parameters without an initial value are set to NOVAL 0 – these parameters are set to UNDEF. This parameter is optional. If it is not entered, 0 is used by default. |
Result: | - |
| |
Example: | PGInit( 'Customers[]' , 1) → set all members of the parameter group "Customers" to the initialization values or NOVAL for the parameters without an initial value | ||