p$TDV:Allg:PGIndex
p$TDV:Allg:PGIndex
Finding of the index fitting to a parameter value of a single-index parameter group. It will be searched within a parameter of the parameter group over all indices from 1 to the given number. Array elements in the UNDEF state are skipped. If 0 is given as a number, it will only be searched up to the first array element in an UNDEF state. The defined size of the parameter group is hereby determined. Therefore, no adjustment of the function call is necessary upon a change in indexing.
Please note: Instead of this function the function f$PGIndex should rather be used.
Syntax: | Index = p$TDV:Allg:PGIndex (Vale, PGName, ArrayName, Number) | ||
| Argument | Type | Meaning |
| Value | String | Value to search for |
| PGName | String | Name of the individual parameter group to be searched. |
| Array name | String | Name of the parameter of the parameter group that is to be searched |
| Number | Integer | Number of the indexes to be searched of the parameter group. |
Result: | Integer | Index of the parameter group where the value of the parameter array name contains the value to be searched. If the value wasn't found the result will be -1. | |