Class: CalcCountRecord

Inherits:
BiffRecord show all
Defined in:
lib/surpass/biff_record.rb

Overview

This record is part of the Calculation Settings Block. It specifies the maximum number of times the formulas should be iteratively calculated. This is a fail-safe against mutually recursive formulas locking up a spreadsheet application.

Record CALCCOUNT, BIFF2-BIFF8:

Offset Size Contents 0 2 Maximum number of iterations allowed in circular references

Constant Summary collapse

RECORD_ID =
0x000C

Constants inherited from BiffRecord

BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID

Instance Attribute Summary

Attributes inherited from BiffRecord

#record_data

Instance Method Summary collapse

Methods inherited from BiffRecord

#record_header, #to_biff

Constructor Details

#initialize(calc_count) ⇒ CalcCountRecord

Returns a new instance of CalcCountRecord.



1534
1535
1536
# File 'lib/surpass/biff_record.rb', line 1534

def initialize(calc_count)
  @record_data = [calc_count].pack('v')
end