14.10.2013 Views

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Expressions<br />

Constants<br />

Creating a database file 2-15<br />

An expression is a value or any computation that produces a value.<br />

Expressions can be combined to produce other expressions.<br />

Type of expression Example<br />

Text constant "London"<br />

Number constant 2.15<br />

Field reference TaxRate<br />

Function Length(ShipToAddress)<br />

Combination of expressions ((Total–Discount)*TaxRate)/100<br />

A constant is a fixed value that’s part of the formula and doesn’t change<br />

from record to record. A constant can be text, or a number, date, or time,<br />

like the text value “Europe” or the numeric value 0.05.<br />

<strong>FileMaker</strong> <strong>Pro</strong> interprets the type of data of a constant value according<br />

to the way you type the constant in a formula. Be sure to type each<br />

constant in a consistent format. (Quotation marks indicate a text<br />

expression.)<br />

For this<br />

type of<br />

data Do this when you type a constant Examples<br />

Text Enclose the text in quotation marks (") "Montréal"<br />

"514 555 1212"<br />

Number Don’t include thousand separators or currency<br />

symbols<br />

Date Use the value as a parameter of the Date function<br />

or TextToDate function. See appendix C,<br />

“Summary of functions.”<br />

Time Use the value as a parameter of the Time<br />

function or TextToTime function. See appendix<br />

C, “Summary of functions.”<br />

123<br />

1234.56<br />

Date(2,1,1998)<br />

TextToDate("03/04/199<br />

8")<br />

Time(4,14,32)<br />

TextToTime("02:47:35)

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

Saved successfully!

Ooh no, something went wrong!