Hello All, I have a function for activating the checkbox but I want to select both the checkboxes simultaneously. Can anyone help me out. Pre-requiste: I want to make sure that the second checkbox only is not selected in any of the event(there can be one selection for first checkbox).
void activate_checks(DBE checks) } KBSri - Wed Jan 28 07:20:18 EST 2015 |
Re: To select multiple item from the checkbox simultaneously Can somebody help me out? |
Re: To select multiple item from the checkbox simultaneously KBSri - Fri Jan 30 00:23:24 EST 2015 Can somebody help me out? I'm really sorry, but I do not understand your question. But anyway, from looking at your code and comparing it with the DXL help I see the construct .. %2 -- it seems that this confused you. I'll try it in other words. Let's say you have one DBE of type checkbox (named "dbChecks") with three check boxes. To check or uncheck values, you have the command set (dbChecks, iValue)
DXL help says "The iValue = 1 * 2^0 + 0 * 2^1 + 1 * 2^2 = 1 + 0 + 4 = 5. So, set (dbChecks, 5) will do what you want. Hope this helps in solving your problem.
BR, |