public int bufferToFields(FieldList record, boolean bDisplayOption, int iMoveMode)
    {
        this.resetPosition(); // Start at the first field
        int iFieldCount = record.getFieldCount();   // Number of fields to read in
        int iErrorCode = Constants.NORMAL_RETURN;
        int iTempError;
        for (int iFieldSeq = Constants.MAIN_FIELD; iFieldSeq <= iFieldCount + Constants.MAIN_FIELD - 1; iFieldSeq++)
        {
            FieldInfo field = record.getField(iFieldSeq);
            if (this.skipField(field))
                iTempError = field.initField(bDisplayOption);
            else
              iTempError = this.getNextField(field, bDisplayOption, iMoveMode);
            if (iTempError != Constants.NORMAL_RETURN)
                iErrorCode = iTempError;
        }
        return iErrorCode;
    }
public int bufferToFields ( FieldList record , boolean bDisplayOption , int iMoveMode ) { this . resetPosition ( ) ; int iFieldCount = record . getFieldCount ( ) ; int iErrorCode = Constants . NORMAL_RETURN ; int iTempError ; for ( int iFieldSeq = Constants . MAIN_FIELD ; iFieldSeq <= iFieldCount + Constants . MAIN_FIELD - 1 ; iFieldSeq ++ ) { FieldInfo field = record . getField ( iFieldSeq ) ; if ( this . skipField ( field ) ) iTempError = field . initField ( bDisplayOption ) ; else iTempError = this . getNextField ( field , bDisplayOption , iMoveMode ) ; if ( iTempError != Constants . NORMAL_RETURN ) iErrorCode = iTempError ; } return iErrorCode ; }
Move the output buffer to all the fields.
This is a utility method that populates the record.
@param record The target record.
@param bDisplayOption The display option for the movetofield call.
@param iMoveMove The move mode for the movetofield call.
@return The error code.