Joined: October 26th, 2013, 8:17 am Posts: 362
|
XWidget 1.8.4 -------------------
if i setini() a boolean value from a boolean control it will generate "-1" for true in ini:
ex: menuitem1.Checked=true Setvalue("DisableonStart",menuitem1.Checked) //generate -1 in ini
but if i write if condition with -1 for true it doesn't recognize it as true but 1 will do:
ex: if(menuitem1.Checked==1) // works if(menuitem1.Checked==-1) // doesn't work
also if i set value for boolean controls (menuitem1.Checked) it works with both -1 & 1 values:
ex: menuitem1.Checked=1 //works menuitem1.Checked=-1 //works menuitem1.Checked=true //works
so i confused about which one should i use or maybe it's a bug
|
|