ElliotHC Active Member Licensed User Aug 8, 2019 #1 I have a save config routine which looks at the state of some checkboxes along with some textfield values and saves them to a file. Text is saving fine but for some reason I can't seem to get the checkbox value.. It always returns false even when it's ticked. Elsewhere in my code I'm using an if statement e.g. Code: Copy If Checkbox1.checked = True then 'DO CODE HERE End If This is working fine. But when I do this Code: Copy Writer.Writeline("CheckBox Value," & CheckBox1.Checked) I always write false
I have a save config routine which looks at the state of some checkboxes along with some textfield values and saves them to a file. Text is saving fine but for some reason I can't seem to get the checkbox value.. It always returns false even when it's ticked. Elsewhere in my code I'm using an if statement e.g. Code: Copy If Checkbox1.checked = True then 'DO CODE HERE End If This is working fine. But when I do this Code: Copy Writer.Writeline("CheckBox Value," & CheckBox1.Checked) I always write false
Harris Expert Licensed User Longtime User Aug 9, 2019 #3 ElliotHC said: I was initializing them Click to expand... So this means you Solved it? - because you were initing it? Just guessing - as others will do... Upvote 0
ElliotHC said: I was initializing them Click to expand... So this means you Solved it? - because you were initing it? Just guessing - as others will do...
ThRuST Well-Known Member Licensed User Longtime User Sep 9, 2019 #4 @ElliotHC You never mentioned how you load your settings to set the checkbox state. It is recommended that you load the actual value on a new line or else the remark will be used as the value. That's why it always remains False. Always provide enough information so that others can understand what you're doing Upvote 0
@ElliotHC You never mentioned how you load your settings to set the checkbox state. It is recommended that you load the actual value on a new line or else the remark will be used as the value. That's why it always remains False. Always provide enough information so that others can understand what you're doing