The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
The Microsoft Excel File Format - OpenOffice.org
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3 Formulas<br />
• Spaces and Carriage Returns – <strong>The</strong> tAttrSpace Token (BIFF3-BIFF8)<br />
This token is a placeholder for space characters and carriage returns inserted into the formula representation. It specifies<br />
the type and number of inserted characters preceding the next token. It does not affect the evaluation of the token array.<br />
In BIFF3, only spaces are allowed, and they can only occur in macro sheets and only in front of the entire formula,<br />
following the equality sign.<br />
Several tAttrSpace tokens may occur before a token, for example mixed spaces and carriage returns. Parentheses and<br />
function calls can contain spaces at different positions:<br />
• Parentheses: before the opening parenthesis and before the closing parenthesis.<br />
• Function call: before the function name and before the closing parenthesis. It is not possible to add a space between<br />
function name and opening parenthesis, and in front of the parameter separator.<br />
<strong>The</strong> position of the added characters is specified inside the tAttrSpace token.<br />
Token tAttrSpace, BIFF3:<br />
Offset Size Contents<br />
0 1 19 H<br />
1 1 40 H (identifier for the tAttrSpace token), or<br />
41 H (identifier for the tAttrSpaceVolatile token)<br />
2 2 Number of spaces following the equality sign (1…255)<br />
Token tAttrSpace, BIFF4-BIFF8:<br />
Offset Size Contents<br />
0 1 19 H<br />
1 1 40 H (identifier for the tAttrSpace token), or<br />
41 H (identifier for the tAttrSpaceVolatile token)<br />
2 1 Type and position of the inserted character(s):<br />
00 H = Spaces before the next token (not allowed before tParen token)<br />
01 H = Carriage returns before the next token (not allowed before tParen token)<br />
02 H = Spaces before opening parenthesis (only allowed before tParen token)<br />
03 H = Carriage returns before opening parenthesis (only allowed before tParen token)<br />
04 H = Spaces before closing parenthesis (only allowed before tParen, tFunc, and tFuncVar<br />
tokens)<br />
05 H = Carriage returns before closing parenthesis (only allowed before tParen, tFunc, and<br />
tFuncVar tokens)<br />
06 H = Spaces following the equality sign (only in macro sheets)<br />
3 1 Number of inserted spaces or carriage returns<br />
72