What is wrong with this code, when i run the program i get the message: Type Mismatch
Code:ChkTray.Value = GetSetting("SecApp", "Restrict", "NoTray", "")
Printable View
What is wrong with this code, when i run the program i get the message: Type Mismatch
Code:ChkTray.Value = GetSetting("SecApp", "Restrict", "NoTray", "")
GetSetting returns a string. Try
ChkTray.Value = CBool(GetSetting("SecApp", "Restrict", "NoTray", "False"))
now i get the error invalid value because the value is a number - 1 or 0
and if a put false it will set the value as false thats why mine was ""
Assuming ChkTray is a checkbox, the value property needs an integer of 0, 1 or 2.
Code:ChkTray.Value = CInt(GetSetting("SecApp", "Restrict", "NoTray", "0"))
My bad :D Mixed up radio button with checkbox values.
thanks to both of you.
Shoolbusdriver i will give you reputation when i can it says i should spread some round, even though u ave helped me a lot of times.
Happy to help :wave:
(@leinad31, I do it regularly :cry: )