07.05.2014 Views

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

The Microsoft Excel File Format - OpenOffice.org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.8 Constant Operand Tokens<br />

3.8 Constant Operand Tokens<br />

3.8.1 tMissArg (16 H )<br />

A missing argument in a function argument list is stored as a tMissArg token. Operand class: value.<br />

Token tMissArg, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 1 16 H<br />

Example: SUM(1,,3) – Second argument is missing and represented by a tMissArg token.<br />

3.8.2 tStr (17 H )<br />

This token contains a string constant. <strong>The</strong> maximum length of the string is 253 characters in BIFF2 (due to the limitation<br />

of 255 bytes per formula) and 255 characters in BIFF3-BIFF8. Operand class: value.<br />

Token tStr, BIFF2-BIFF5:<br />

Offset Size Contents<br />

0 1 17 H<br />

1 var. Byte string, 8-bit string length (➜2.5.2)<br />

Token tStr, BIFF8:<br />

Offset Size Contents<br />

0 1 17 H<br />

1 var. Unicode string, 8-bit string length, option flags occur always (➜2.5.3)<br />

Example: LEN("ABC") – <strong>The</strong> string constant "ABC" is represented by a tStr token.<br />

3.8.3 tErr (1C H )<br />

This token contains an error code. Operand class: value.<br />

Token tErr, BIFF2-BIFF8:<br />

Offset Size Contents<br />

0 1 1C H<br />

1 1 Error code (➜2.5.6)<br />

Example: ERROR.TYPE(#N/A) – <strong>The</strong> constant error code #N/A is represented by a tErr token.<br />

51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!