Trim; Trunc (Truncate) - NUANCE OMNIFORM 2 REFERENCE FOR MACINTOSH Reference

Hide thumbs Also See for OMNIFORM 2 REFERENCE FOR MACINTOSH:
Table of Contents

Advertisement

Trim

The Trim function returns a given string with all leading, trailing, and
extra blank spaces removed.
Usage Example
Trim([str1])
If the field [str1] = Jane Doe
Then the calculation Trim([str1]) returns Jane Doe
In the example below, the Supervisor 1 field or Supervisor 2 field is placed
in the Manager field depending on which box is checked. The name is
trimmed of all extra blank spaces.

Trunc (Truncate)

The Trunc function returns the value of a number or numeric expression
truncated to the specified number of decimal places in the second
parameter.
Usage Example
Trunc([num1],num of decimal places)
If the field [num1] = 3.1415926
Then the calculation Trunc([num1],4) returns 3.1415
In a different example below, the sales are summed and placed in the All
Sales field. The value is truncated down to 10 cents.
Functions
Using Calculations 9-31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omniform

Table of Contents