2.0
Table Of Contents
- Introduction
- Installation and Setup
- Tutorials
- Views and Form Usage
- OmniForm Procedures
- Designing a Form
- The Design Process
- The Design View Toolbars
- Creating Objects
- General Creation Guidelines
- Creating a Text Object
- Creating a Line Object
- Creating an Oval Object
- Creating a Rectangle Object
- Creating a Graphic Object
- Creating a Fill Text Object
- Creating a Comb Object
- Creating a Check Box Object
- Creating a Circle Text Object
- Creating a Table Object
- Creating a Fill Graphic Object
- Defining Objects
- Changing Object Appearance
- Redesigning Your Form
- Using the Scrapbook
- Inserting OLE Objects in a Form
- Filling a Form
- Managing an OmniForm Database
- Using Calculations
- Calculation Overview
- Operators
- Functions
- Abs (Absolute Value)
- Avg (Average)
- Date (Current Date)
- DayName
- DayOfMonth
- DayOfWeek
- DayOfYear
- Exp (Exponentiation)
- FV (Future Value)
- Hour
- If
- Int (Integer)
- Left
- Length
- Ln (Natural Logarithm)
- Log (Base 10 Logarithm)
- Lower
- Max (Maximum)
- Middle
- Min (Minimum)
- Minute
- Mod (Modulus (Remainder))
- Month
- MonthName
- Pi
- PMT (Payment)
- Position
- Proper
- PV (Present Value)
- RecordCount
- Replace
- Replicate
- Right
- Round
- Second
- Sign
- Sqrt (Square Root)
- Sum
- Time
- Trim
- Trunc (Truncate)
- Upper
- Year
- Functions — Quick Reference
- Functions Sorted by Type
- Technical Information
- Glossary
Calculation Overview
Using Calculations - 226
Calculation Guidelines
Keep these guidelines in mind as you work with calculations:
• Brackets ( [] ) must enclose a field name that contains a space.
[
Quantity Ordered
]
*
[
Unit Price
]
OmniForm will not accept the calculation otherwise.
• Parentheses (
()
) must enclose an entire function.
Sum
(
[Price1],[Price2]
)
This tells OmniForm where the function begins and ends. You
may have more than one function in a calculation.
• You must insert a list separator between fields in a manually
created function.
Sum
(
[Price1]
,
[Price2])
Use the list separator from the Windows Control Panel.
Windows 95 users: use the
List Separator
selection in the
Number
tab of the
Regional Settings
control panel.
Windows NT and 3.1 users: use the
List Separator
in from the
International
control panel.
• OmniForm automatically inserts list separators, parentheses, and
brackets when you use the Calculation Builder or the Auto
button to create a calculation, and when you click the Accept
Calculation button to accept a calculation.
See the previous bulleted item for an explanation of the list
separator OmniForm uses.
• OmniForm does not automatically insert brackets around a
manually created field name that contains a space. You must
insert brackets manually.
• If you manually enter a decimal number in a calculation, use the
decimal selection from the Windows Control Panel.
Windows 95 users: use the
Decimal symbol
selection from the
Number
tab of the
Regional Settings
control panel.
Windows 3.1 and NT users: use the
Decimal separator
selection
from the
International
control panel.
•Quotes ( “ ” ) must enclose a text string.
If([Name1]=
”
Ann
”
,
”
Dear Ann:
”
,
”
Dear Customer:
”
)
• OmniForm automatically removes extra spaces (except a space in
a field name) when it accepts a calculation.
You can insert spaces between operators and after commas when
creating a calculation if this helps you see it more easily.