Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the ID of the nth configuration key.
Syntax
public ConfigurationKeyId cnt2Id(int cnt)
Run On
Called
Parameters
- cnt
Type: int
The index of the configuration key, which must be between 1 and the number of configuration keys.
Return Value
Type: ConfigurationKeyId Extended Data Type
The ID of the specified configuration key.
Remarks
To find the number of configuration keys, use the cnt method. In general, the index and ID will differ, because not all the IDs are used.
Examples
ConfigurationKeySet configKeySet = new ConfigurationKeySet();
DictConfigurationKey dictConfigurationKey;
int i;
configKeySet.loadSystemSetup();
for (i=1; i<= configKeySet.cnt(); i++)
{
setPrefix('Disabled configurationkeys');
if (!configKeySet.enabled( configKeySet.cnt2Id(i) ))
{
dictConfigurationKey =
new DictConfigurationKey(configKeySet.cnt2id(i));
info (dictConfigurationKey.name());
}
}