def check_dimensions(row, col, ignore_row = 0, ignore_col = 0)       #:nodoc:
    return -2 unless row
    return -2 if row >= RowMax

    return -2 unless col
    return -2 if col >= ColMax

    @dimension.row(row) if ignore_row == 0
    @dimension.col(col) if ignore_col == 0

    0
  end
def check_dimensions(row, col, ignore_row = 0, ignore_col = 0)       #:nodoc:
    return -2 unless row
    return -2 if row >= RowMax

    return -2 unless col
    return -2 if col >= ColMax

    @dimension.row(row) if ignore_row == 0
    @dimension.col(col) if ignore_col == 0

    0
  end
Check that $row and $col are valid and store max and min values for use in
 DIMENSIONS record. See, store_dimensions().

 The $ignore_row/$ignore_col flags is used to indicate that we wish to
 perform the dimension check without storing the value.

 The ignore flags are use by set_row() and data_validate.