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.

1. When you enter dates in formulas you must enclose them in "double quotation<br />

marks".<br />

2. Month and day must be given as two place numbers. Thus, "04/20/12" is<br />

correct, while "4/20/12" is incorrect (the month has only one place).<br />

3. The year can be given as a two or four place number, as you prefer. Thus,<br />

"04/20/12" and "04/20/2012" are equally valid.<br />

4. When you enter a year as a two place number between 0 and 29, TextMaker<br />

automatically prefixes 20. When you enter a number between 30 and 99, Text-<br />

Maker prefixes 19. Thus, the date "01/01/29" is interpreted as 1/1/2029, while<br />

"01/01/30" is interpreted as 1/1/1930.<br />

Database fields, table cells and objects<br />

You can also use the contents of database fields, table cells and objects in formulas.<br />

You will find information about this in the sections “Table cells in calculations”,<br />

“Database fields in calculations” and “Objects in calculations” beginning on page<br />

364.<br />

Calculations<br />

A formula can contain various kinds of calculations.<br />

Example: 6*5<br />

Always returns the constant value 30, and is, in fact, a constant value – not a<br />

calculation.<br />

Example: 5*NUMBER<br />

In this formula, the constant value 5 is multiplied by the value of the variable<br />

NUMBER. If NUMBER has the value of 10, the formula gives 50.<br />

Beyond that, TextMaker puts a number of computational functions at your disposal.<br />

Detailed descriptions can be found in the section “Computational functions”<br />

(page 376). To start with, here are a few examples:<br />

Example: TODAY()<br />

The function TODAY() returns the current date. For example, on September 16,<br />

2012 it would return 09/16/12.<br />

Example: MONTH(TODAY())<br />

Manual TextMaker Calculations in the text 373

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

Saved successfully!

Ooh no, something went wrong!