public int setString ( String strField , boolean bDisplayOption , int iMoveMode ) // init this field override for other value { int iFieldLength = 0 ; Object objTempBinary = null ; if ( strField != null ) { iFieldLength = strField . length ( ) ; int iMaxLength = this . getMaxLength ( ) ; if ( ( iFieldLength > iMaxLength ) || ( iFieldLength > 40 ) ) iFieldLength = iMaxLength ; try { objTempBinary = this . stringToBinary ( strField ) ; } catch ( Exception ex ) { String strError = ex . getMessage ( ) ; if ( strError == null ) strError = ex . getClass ( ) . getName ( ) ; Task task = null ; if ( this . getRecord ( ) != null ) if ( this . getRecord ( ) . getRecordOwner ( ) != null ) task = this . getRecord ( ) . getRecordOwner ( ) . getTask ( ) ; //if (task == null) // task = BaseApplet.getSharedInstance(); if ( task == null ) return DBConstants . ERROR_RETURN ; return task . setLastError ( strError ) ; } } return this . setData ( objTempBinary , bDisplayOption , iMoveMode ) ; }
Convert and move string to this field . This Data is in a binary format so convert it and move it .