потому что в писании написано:
Цитата:
TRegistry.ReadInteger:
If the Registry entry does not contain an integer, an exception is raised.
TRegistry.ReadString:
If there is no Registry entry with the specified name, ReadString returns an empty string.
|
отсутствие ключа это не integer, но пустая строка