Hello, I looked for this in the FAQ and everywhere else, and couldn't find it, so......
My project checks an INI file when my autorun starts. It stored the values from the keys in the INI in variables. All variables default to FALSE.
I also have three text boxes on the screen. I want the text boxes to appear ONLY if the key exists, or if the key is non-null. But an empty key value passes any boolean test i can think of, and it overrides the default too! Here's an example:
contents of myini.ini
[KEYS]
KEY1=CAT
KEY2=DOG
KEY3=
Remember the text boxes should only appear for valid keys.
TEXT1 shows
TEXT2 shows
TEXT3 shows (but shouldn't, default is FALSE)
TEXT4 does not show (no key at all, default value holds)
Is there a way I can check if a key has a NULL value?
Cyberia
My project checks an INI file when my autorun starts. It stored the values from the keys in the INI in variables. All variables default to FALSE.
I also have three text boxes on the screen. I want the text boxes to appear ONLY if the key exists, or if the key is non-null. But an empty key value passes any boolean test i can think of, and it overrides the default too! Here's an example:
contents of myini.ini
[KEYS]
KEY1=CAT
KEY2=DOG
KEY3=
Remember the text boxes should only appear for valid keys.
TEXT1 shows
TEXT2 shows
TEXT3 shows (but shouldn't, default is FALSE)
TEXT4 does not show (no key at all, default value holds)
Is there a way I can check if a key has a NULL value?
Cyberia
Comment