I think the reason it's happening is because it thinks myVal is null. I have to figure out a way to read the setting I typed into the control box into myVal like I do when in the ReadSettingIni procedure.