Background:
"If the key does not exist, the VI returns the default value. "
What happens if the key is empty isn't described in the help, and in fact it results in "Error 19 - Read key.vi" or Error 1 - GPIB (sic) in the boolean case. Not a very helpful error message as it doesn't mention which section and key was faulty nor the call chain so it can be easily found.
Suggestion:
If the key is empty, return default. Alternativly add an input "Return error on empty" to make it optional.
Include section and key in error message
Include call chain (now that's a general improvement needed in many VIs)
How to reproduce?
Read an empty parameter from an ini-file as double, int or boolean.
/Y
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.