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.10 Control Tokens<br />

In the following examples, the space characters are replaced by “◦” characters, and a carriage return is shown as<br />

“”. <strong>The</strong> tAttrSpace tokens are shown using the following notation: tAttrSpace(type,count).<br />

Formula<br />

Token array<br />

=◦1 tAttrSpace(00 H ,1), tInt(1)<br />

=◦1◦◦+◦◦◦2<br />

=1◦<br />

◦◦+2<br />

=1+◦(2◦◦)<br />

=◦SUM(1◦◦)<br />

=◦NOW()<br />

tAttrSpace(00 H ,1), tInt(1), tAttrSpace(00 H ,3), tInt(2), tAttrSpace(00 H ,2), tAdd<br />

tInt(1), tInt(2), tAttrSpace(00 H ,1), tAttrSpace(01 H ,1), tAttrSpace(00 H ,2), tAdd<br />

tInt(1), tInt(2), tAttrSpace(02 H ,1), tAttrSpace(04 H ,2), tParen, tAdd<br />

tInt(1), tAttrSpace(00 H ,1), tAttrSpace(04 H ,2), tAttrSum<br />

tAttrSpaceVolatile(00 H ,1), tFuncV(NOW)<br />

Macro sheet formula Token array<br />

=◦1 tAttrSpace(06 H ,1), tInt(1)<br />

=◦NOW()<br />

tAttrSpaceVolatile(06 H ,1), tFuncV(NOW)<br />

◦myname=◦◦1 tAttrAssign, tAttrSpace(06 H ,1), tStr("myname"), tAttrSpace(00 H ,2), tInt(1),<br />

tFuncVarV(SET.NAME)<br />

◦myname=◦◦NOW() tAttrAssign, tAttrSpace(06 H ,1), tStr("myname"), tAttrSpaceVolatile(00 H ,2),<br />

tFuncV(NOW), tFuncVarV(SET.NAME)<br />

73

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

Saved successfully!

Ooh no, something went wrong!