16.02.2014 Views

Download - SoftMaker

Download - SoftMaker

Download - SoftMaker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Objects in calculations<br />

Certain types of objects can also be used in calculations. So, for example, you can<br />

create a form that contains text fields and use the contents of these text fields in<br />

calculations.<br />

All the objects in a document have distinctive names, as described in section<br />

“Changing the names of objects” beginning on page 253. You can address each<br />

individual object by its name. For example, Textbox1 references the content of the<br />

text field “Textbox1”.<br />

You evaluate the contents of objects in calculations as follows:<br />

Text fields and text frames<br />

Textbox1.Text (or Textbox1 for short) returns the content of the text field with<br />

the name “Textbox1” as text (without any formatting).<br />

Textbox1.Value on the other hand interprets the content of the text field as a<br />

number and returns it.<br />

Tables<br />

Table1.A1 returns the content of cell A1 in Table1.<br />

Table1.#A1 interprets the content of this cell as a number and returns it.<br />

Table1.$A1 interprets the content of this cell as text and returns it.<br />

Table1 returns the sum of the contents of all cells in Table1.<br />

Checkboxes and checkbox frames<br />

Checkbox1.Sel (or Checkbox1 for short) returns 1 if the checkbox is checked,<br />

or 0 if not.<br />

Checkbox1.Text returns the text for this checkbox if it is checked, otherwise an<br />

empty text string.<br />

Dropdown lists and dropdown list frames<br />

Dropdown1.Text returns the text of the selected item in Dropdown1.<br />

Dropdown1.Sel (or Dropdown1 for short) returns the number of the selected<br />

item.<br />

An example: The formula “Textbox1.Value * 2” references the current numeric<br />

value in the text field named “Textbox1” and multiplies it by two.<br />

Manual TextMaker Calculations in the text 367

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

Saved successfully!

Ooh no, something went wrong!