Category: Program Features

The Original Internet Language

How To Use Arithmetic Expressions

An arithmetic expression is a complex value expression that consists of two or more value expressions and associated arithmetic operators. The arithmetic operators are + (Add) – (Subtract) ^(Exponentiation) * (Multiply) / (Divide) Examples of Arithmetic Expressions For clarity, spaces can be used between operands and operators, but they are not required. Salary * 1.1…
Read more

Rules of Precedence for Arithmetic Operators

Operator Rule of Precedence Unary + and – Positive (+) and negative (-) signs are evaluated first, e.g., +2 or -Salary. ^ Exponentiation (^) is performed next, e.g., x^y, that is x raised to the power of y.Note: If x is negative, y must be an integer. * and / Multiplication (*) and division (/)…
Read more

Arithmetic Expressions

Arithmetic expressions use arithmetic operators to combine operands (typically value expressions). When evaluated, these arithmetic expression yield a numeric result, if possible. Operator Meaning + Positive sign (unary +); addition – Negative sign (unary -); subtraction ^ Exponentiation * Multiplication / Division Note: If the ^ character is unavailable, you can substitute **. The standard…
Read more

Multi-Language Support

Customizing applications for languages other than English In Zim applications, some information that appears in the user interface, such as data masks, and error and processing messages, is language dependent. Zim provides tools to handle these dependencies and to make the application appear to the application user in languages other than English. A single application…
Read more

Number Literals

A number literal is composed using the digits 0 to 9 and a decimal point (if desired). The number literal is automatically assigned the data type VASTINT, with a number of decimal places equal to the number of places shown in the expression. The following numbers are examples of valid number literals: 5   234   0.5   468.55 The following…
Read more

Expressions and the $Null Property

An object that has not been assigned a value, or whose value is unknown, is considered to be $Null. For example, at the start of an application session, global variables do not have an assigned value, so each is considered $Null. If the name of an object with an unassigned or unknown value is used…
Read more

Truth Tables

For Boolean Operators: AND, OR, XOR, NOT For Conditional Operators: [NOT] BETWEEN, [NOT] IN, [NOT] LIKE, IS [NOT] $NULL Truth Table for a Boolean AND Expression expression1 AND expression2 If the conditional expressions linked by AND are both TRUE, then the Boolean expression is TRUE. both FALSE, then the Boolean expression is FALSE. one TRUE…
Read more

Special Expression Formats

Expressions can be combined in special ways to produce concise program statements that nevertheless have tremendous power and flexibility. The special expression formats are WHERE expression format assignment expression format grouped expression format case expression format How To Use the WHERE Expression Format A WHERE subcommand can be appended to a value expression to control…
Read more

System Variables

The software maintains a series of system variables that represent either fixed values ($ZimOS) or values that fluctuate dynamically with the current status of the software ($InTransaction) or of application objects (ThisWindow.WindowTag). System variables resemble global variables in nature. The software automatically sets or resets the values of system variables to reflect the status of…
Read more

Program Templates and the GENERATE Command

Although every application has its own unique requirements, the individual components of applications are often very similar. For example, menus, pop-up windows, and data entry forms and displays are common components of most applications. Pop-up windows, for instance, can vary in size, location and contents, but the commands to present them to the application user…
Read more

en_CAEnglish