Category: Getting Started

The Original Internet Language

How To Construct Arithmetic Expressions

Writing Expressions Arithmetic operators and parentheses can be combined to create long, complex expressions. Arithmetic expressions are evaluated based on the standard rules of precedence. Parentheses alter the order of evaluation. Spaces between operands and operators can be used for clarity, but are not required. For example, Salary * 1.1 and Salary*1.1 are equivalent. Data…
Read more

Arithmetic with Dates

ZIM-X provides a number of built-in functions to perform date and time arithmetic.  If an arithmetic expression subtracts one date from another (i.e., both operands are of data type DATE), the result is a number representing the number of days between the two dates. Example Consider the Date Type values: Date1 = 19990923 (23SEP1999) and…
Read more

Decimals and Rounding

The result of an arithmetic expression contains as many decimal places as are found in the operands of the expression. If the expression contains several operands with varying numbers of decimal places, the result takes on the number of decimal places found in the operand with the most decimal places. If the result of the…
Read more

How To Use Variables

A variable is a programming object defined in the Object Dictionary for the application. Variables are used to store values temporarily during an application session. A variable is assigned a size and a data type in its definition, but until assigned a value during an application session, the variable is valueless (that is, $Null).

How To Use Named Constants

A named constant is a programming object defined in the Object Dictionary for the application. The constant’s value is part of its definition. By using named constants in place of literal constants in application programs, you ensure that a constant’s value can be quickly, easily, and universally changed, if necessary.  

How To Switch Windows Under Keystroke Control

The Alt+F6 keystroke combination cycles the user through all available windows if the current window is not modal. Its effect is similar to clicking the mouse to make a non-current window current. The Ctrl+F6 keystroke combination cycles through all available sibling windows of a child window.

How To Construct Hex Codes

Within a quoted character string, a backslash immediately followed by two characters that are either digits from 0 to 9 or letters from A(a) to F(f) are treated as a hex code. The text string containing the hex code must be enclosed in quotation marks. Example of Using Hex Codes set output printeroutput “F”;    % selects…
Read more

How To Take Advantage of Rounding

The results of value expressions are rounded automatically, but only after the entire expression has been evaluated. (During evaluation, full decimal values are used.) The final result takes on the number of decimal places found in the operand with the most decimal places. The rounded result is further rounded if it is being assigned to…
Read more

How To Construct a Validation Rule for Date Fields

The available pattern symbols for constructing date validation rules are digits used to form numbers that constitute valid dates. The input data must conform to the specified date(s). The available syntax characters for constructing date validation rules are – Denote a range of dates. | Separates alternative dates or ranges of dates. Examples of Date…
Read more

Continuation Lines

By default, a physical line end (carriage return at the command prompt or in an application program) terminates the statement on that line. Upon encountering the line end, the software processes the current statement. However, statements that are too long to fit on one physical line can be continued onto any number of physical lines.…
Read more

en_CAEnglish