User manual
Table Of Contents
- Preface Learning how to use FileMakerPro
- Chapter 1 FileMaker Pro basics
- Chapter 2 Adding and viewing data
- Chapter 3 Finding and sorting information
- Finding records
- Finding text and characters
- Finding exact matches in text fields
- Finding numbers, dates, and times
- Finding ranges of information
- Finding data in related fields
- Finding records that match multiple criteria
- Finding empty or non-empty fields
- Finding duplicates
- Finding all records except those matching criteria
- Hiding records from a found set and viewing hidden records
- Viewing, repeating, or changing the last find
- Sorting records
- Finding records
- Chapter 4 Previewing and printing information
- Chapter 5 Creating a database
- Chapter 6 Creating and managing layouts and reports
- Chapter 7 Customizing layouts
- Chapter 8 Working with related files
- Chapter 9 Protecting databases with passwords and groups
- Chapter 10 Creating scripts to automate tasks
- About scripts
- Creating scripts: an overview
- About ScriptMaker steps
- Control script steps
- Navigation script steps
- Sort, find, and print script steps
- Editing script steps
- Fields script steps
- Records script steps
- Windows script steps
- Files script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Changing scripts
- Duplicating, renaming, or deleting scripts
- Importing scripts
- Listing scripts in the Scripts menu
- Using buttons with scripts
- Example of a ScriptMaker script
- Chapter 11 Using formulas and functions
- Chapter 12 Importing and exporting data
- Chapter 13 Sharing databases on a network
- Chapter 14 Publishing databases on the Web
- About publishing databases on the Web
- How users work with databases on the Web
- What you need to publish databasesontheWeb
- Publishing databases on the Web: an overview
- Enabling FileMaker Pro Web Companion
- Configuring FileMaker Pro WebCompanion
- Enabling Web Companion sharing
- Setting up browser views
- Testing your published database
- About browser views for web publishing
- Chapter 15 Using ODBC with FileMakerPro
- Appendix A Customizing FileMaker Pro
- Appendix B Backing up and recovering files
- Appendix C FileMaker Pro Quick Reference (Windows)
- Appendix D FileMaker Pro Quick Reference (Mac OS)
- Index
11-2
FileMaker Pro User’s Guide
Expressions
A formula contains one or more expressions. An expression is a
value or any computation that produces a value. Expressions can be
combined to produce other expressions.
Constants
A constant is a fixed value that’s part of the formula and doesn’t
change from record to record. A constant can be text, number, date,
or time, like the text value “Europe” or the numeric value 0.05. Text
constants in formulas can be up to 253 characters long.
Important When you use a constant in a formula, use the correct
format.
Field references
A field reference is a field name that acts as a placeholder for the
field’s value. When FileMaker Pro evaluates the formula in the
current record, the value in the field represented by the field
reference is used in the calculation.
To define a formula that references a related field, “Defining
calculation fields” on page 5-5. The syntax is Relationship
name::Field name. For more information about related fields, see
chapter 8, “Working with related files.”
Note References to related fields can become invalid when you
move or rename a related file, or delete a field in that file. Also,
changing the field type or number of repetitions of a related field can
cause unexpected behavior.
Type of expression Example
Text constant "London"
Number constant 2.15
Field reference TaxRate
Function Length(ShipToAddress)
Combination of expressions ((Total–Discount)*TaxRate)/100
For this
type of
data When you type a constant Examples
Text Enclose the text in quotation
marks (")
"Montréal"
"514 555 1212"
Number Don’t include thousand separators
or currency symbols.
123
1234.56
Date Use the value as a parameter of
the Date function or TextToDate
function. See “Date functions” on
page 11-7, “Text functions” on
page 11-5.
Date(2,2,2001)
TextToDate("04/04/
2000")
Time Use the value as a parameter of
the Time function or TextToTime
function. See “Time functions” on
page 11-7, “Text functions” on
page 11-5.
Time(4,14,32)
TextToTime("02:47:35")
This expression Returns
Invoice Total*0.075 7.5 when the value in the Invoice Total field
is 100
First Name & " " &
Last Name
John Jones when the value in the First Name
field is John and the value in the Last Name
field is Jones
Invoices::
Invoice Total*0.075
7.5 when the value in the Invoice Total field is
100. The Invoice Total field is located in a
related database.
For this
type of
data When you type a constant Examples