public int setState(boolean state, boolean bDisplayOption, int moveMode)
    {
        double value = 0;
        if (state)
            value = 1;
        return this.setValue(value, bDisplayOption, moveMode);  // Move value to this field
    }
public int setState ( boolean state , boolean bDisplayOption , int moveMode ) { double value = 0 ; if ( state ) value = 1 ; return this . setValue ( value , bDisplayOption , moveMode ) ; }
For binary fields, set the current state.
@param state The state to set this field.
@param bDisplayOption Display changed fields if true.
@param iMoveMode The move mode.
@return The error code (or NORMAL_RETURN).