Category: Program Features

The Original Internet Language

How To Construct a Validation Rule for Alphanumeric Fields

The available pattern symbols for constructing alphanumeric validation rules are A stands for any letter (A-Z, a-z) X stands for any letter or digit (A-Z, a-z, 0-9) 9 stands for any digit (0-9) Z stands for any digit or blank (0-9, the space character) (all others) exact match. To obtain an exact match for A,…
Read more

How To Construct Logic Expressions

Logic expressions represent true or false circumstances. Logic expressions typically consist of at least two arguments (usually value expressions) combined using conditional operators (conditional expressions), Boolean operators (Boolean expressions), or both. Logic expressions can be quite complex. Parentheses can be used to explicitly control the order of evaluation in complex logic expressions. When a statement…
Read more

About Macros

A macro is a dynamically declared name that represents a character string. When a macro call is encountered in an application program the macro call is replaced by the current character string value of the macro. Macros are sometimes called replacement parameters or substitution variables. The following topics discuss how to work with macros in…
Read more

About Macros

A macro is a dynamically declared name that represents a character string. When a macro call is encountered in an application program the macro call is replaced by the current character string value of the macro. Macros are sometimes called replacement parameters or substitution variables. The following topics discuss how to work with macros in…
Read more

Macros and Compiled Programs

Macro substitution takes place only when the software is parsing a source (uncompiled) program. During compilation, the software parses the source code and performs macro substitution based on current macro values. The resulting commands are then compile and stored in compiled form. When the compiled program is executed, its source code is not parsed again.…
Read more

Macro Substitution

A macro can appear anywhere and can be repeated any number of times in an application program. Each time the software encounters a call to the macro, it substitutes the current character string value of the macro. Substitution takes place one command at a time, before each command is executed. To view these substitutions as…
Read more

The Null String

A null string is a character string of zero length. Unlike the $Null property that indicates that the value is unknown or unassigned, the null string is a known value. For example, if you have two variables, x and y, both of which are null strings, then the expression x = ” and y ‘abc’…
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

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

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

en_CAEnglish