16.02.2014 Views

Download - SoftMaker

Download - SoftMaker

Download - SoftMaker

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

le/Field list box. Any of them can easily be inserted into the formula by double<br />

clicking on them.<br />

Important: A variable is valid only from the position in the text at which it is<br />

defined. So, if you insert the formula VOLUME=23*13*7 in the third paragraph<br />

of your document and then try to call out its content or reference it in a formula<br />

in the second paragraph, TextMaker will respond with the error message “Unknown<br />

variable name”.<br />

An application example<br />

A tennis center wants to write invoices for the rentals of its courts. The computer<br />

should calculate the total amount and add 19% tax. Such an invoice would be<br />

written more or less in this (much abbreviated) form:<br />

I N V O I C E<br />

? hours @ ??.??<br />

------------<br />

Total = ??.??<br />

------------<br />

+ 19% tax = ??.??<br />

Amount due = ??.??<br />

------------<br />

Those places indicated by question marks would have to be filled by hand after<br />

calculating the amounts with a pocket calculator. TextMaker takes away this labor.<br />

Let’s assume that the tennis players have rent a court for 2 hours and that each hour<br />

costs $10.00 plus tax:<br />

1. Delete the question mark before “hours” and enter HOURS=2 there with the<br />

Insert > Calculation command.<br />

(This has the following result: Firstly, you have now assigned the variable<br />

HOURS a value of 2; secondly, you have caused the content of this variable (2)<br />

to appear in the text.)<br />

2. To the right, in place of the question marks after “@”, enter the calculation<br />

PRICE=10.<br />

(The same goes here: Firstly, you have now assigned the variable PRICE a<br />

value of 10; secondly, you have caused the content of this variable (10) to appear<br />

in the text.)<br />

362 Calculations in the text Manual TextMaker

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

Saved successfully!

Ooh no, something went wrong!