public int setString( String strField, boolean bDisplayOption, int iMoveMode)
    {
        NumberField numberField = (NumberField)this.getNextConverter();
        int iErrorCode = super.setString(strField, DBConstants.DONT_DISPLAY, iMoveMode);
        if (strField.length() == 0)
            numberField.displayField();     // Special Case (because we return immediately)
        if ((iErrorCode != DBConstants.NORMAL_RETURN) || strField.length() == 0)
            return iErrorCode;
        double doubleValue = this.getValue();
        if (doubleValue != 0)
            doubleValue = 1 / doubleValue;
        iErrorCode = this.setValue(doubleValue, bDisplayOption, DBConstants.SCREEN_MOVE);
        return iErrorCode;
    }
public int setString ( String strField , boolean bDisplayOption , int iMoveMode ) { NumberField numberField = ( NumberField ) this . getNextConverter ( ) ; int iErrorCode = super . setString ( strField , DBConstants . DONT_DISPLAY , iMoveMode ) ; if ( strField . length ( ) == 0 ) numberField . displayField ( ) ; if ( ( iErrorCode != DBConstants . NORMAL_RETURN ) || strField . length ( ) == 0 ) return iErrorCode ; double doubleValue = this . getValue ( ) ; if ( doubleValue != 0 ) doubleValue = 1 / doubleValue ; iErrorCode = this . setValue ( doubleValue , bDisplayOption , DBConstants . SCREEN_MOVE ) ; return iErrorCode ; }
Convert and move string to this field.
Get the recriprical of this string and set the string.
@param bState the state to set the data to.
@param bDisplayOption Display the data on the screen if true.
@param iMoveMode INIT, SCREEN, or READ move mode.
@return The error code (or NORMAL_RETURN).