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.10 Control Tokens<br />
• Sum with One Parameter – <strong>The</strong> tAttrSum Token<br />
This token replaces the tFuncVar(SUM) token, if the SUM function takes one parameter only. This is the only tAttr<br />
token that behaves like a real operator.<br />
Token tAttrSum, BIFF2:<br />
Offset Size Contents<br />
0 1 19 H<br />
1 1 10 H (identifier for the tAttrSum token)<br />
2 1 Not used<br />
Token tAttrSum, BIFF3-BIFF8:<br />
Offset Size Contents<br />
0 1 19 H<br />
1 1 10 H (identifier for the tAttrSum token)<br />
2 2 Not used<br />
Example: <strong>The</strong> formula =SUM(1) is represented with the token array tInt(1), tAttrSum; instead of the token array<br />
tInt(1), tFuncVarV(SUM).<br />
• Assignment in Macro Sheet – <strong>The</strong> tAttrAssign Token<br />
In macro sheets it is possible to replace the SET.NAME function with an assignment-style formula. <strong>The</strong> usual syntax<br />
=SET.NAME(name,value) will be replaced with the command name=value then.<br />
Example: <strong>The</strong> macro sheet function =SET.NAME(myname,1) is represented by the token array<br />
tNameV(myname), tInt(1), tFuncVarV(SET.NAME).<br />
<strong>The</strong> used name is contained in a tName token.<br />
<strong>The</strong> same can be done with the assignment-style formula myname=1. <strong>The</strong> token array of this function is<br />
tAttrAssign, tAttrStr("myname"), tAttrInt(1), tFuncVarV(SET.NAME).<br />
Now, the used name is given as string in a tStr token, not in a tName token anymore.<br />
Token tAttrAssign, BIFF2:<br />
Offset Size Contents<br />
0 1 19 H<br />
1 1 20 H (identifier for the tAttrAssign token)<br />
2 1 Not used<br />
Token tAttrAssign, BIFF3-BIFF8:<br />
Offset Size Contents<br />
0 1 19 H<br />
1 1 20 H (identifier for the tAttrAssign token)<br />
2 2 Not used<br />
In an assignment-style formulas the tAttrVolatile token will not be the first token in the formula, but it will follow the<br />
tStr token containing the name used in the assignment (as usual, this can also be a tAttrSpaceVolatile token).<br />
Example: <strong>The</strong> assignment-style formula myname=NOW() is represented by the following token array:<br />
tAttrAssign, tStr("myname"), tAttrVolatile, tFuncV(NOW), tFuncVarV(SET.NAME).<br />
See also the examples for the tAttrSpace token below.<br />
71