setqbitfield1
setqbitfield1(s_varx_valx_bitPosition) =>x_result
Description
Sets a value into a single bit in the bit field specified by the variable s_var, stores the new value back into the variable, and then returns the new value. Prefix form of the <>= operator.
Arguments
|
Variable representing the bit field whose value is to be changed. |
|
Value Returned
Examples
x = 0b1001
setqbitfield1(x 1 1)
=> 11
x => 11
setqbitfield1(x 1 2)
=> 15
x => 15
Related Topics
Return to top