Category: ZIM 4GL Language Reference

The Original Internet Language

$money

Converts a number to a monetary format. Syntax $money(number) Parameters number a number, or an expression that evaluates to a number Return Value Number, with two decimal places. Comments Use $money to convert a number into a monetary number (i.e., with two decimal places). Number is rounded if necessary. Example $money(101.325+48.674) Evaluates to 150.00. See…
Read more

NOT

Performs a Boolean NOT of a logic expression. Syntax NOT expression Parameters expression A logic expression using conditional and Boolean operators. If the expression is complex, it must be enclosed in parentheses. Return Value Logical. Comments If expression is logically true, the entire expression, including the NOT, is logically false. If expression is logically false,…
Read more

$Editor

The name of the text editor software for editing programs. Syntax $editor Return Value A character string. Can be reset by an application program. Description The name of a text editor. Each time you start a new application session, $Editor is set, by default, to the name of an editor commonly used on the current…
Read more

SET MESSAGES

Enables or suppresses the display of all system messages. Syntax SET MESSAGES ON|OFF Comments The MESSAGES option is set ON by default. When MESSAGES is ON, all system messages (errors, warnings, information) are displayed. Setting MESSAGES to OFF suppresses the display of all messages. The display of specific message types may be turned on or…
Read more

_ (Wildcard)

Used with the LIKE operator to construct patterns for matching. Comments Used with the LIKE operator in logic expressions, the _ wildcard matches any single character when the pattern on the right is compared to expression. Example “_ob%” Matches any character string whose second and third letters are ob, followed by zero or more characters…
Read more

SET ERRORS

Enables or suppresses the display of error messages. Syntax SET ERRORS ON|OFF Comments The ERRORS option is set ON by default. When ERRORS is ON, error messages are displayed. Setting ERRORS to OFF suppresses the display of such messages. Error messages are of the form: *** Error*** . . . or: ***Zim System Error*** .…
Read more

$ticks

Extracts “ticks” information from a standard time value. Syntax $ticks(time) Parameters time an 8-digit number, or an expression that evaluates to an 8-digit number, expressing valid time in the form HHMMSSTT Return Value Number. Comments The system variable $Time is often used for time. With operating systems whose clocks do not support hundredths of a…
Read more

UNCOMPILE

Uncompiles an application program. Syntax UNCOMPILE progdocname Parameters progdocname The name of the application document containing the program to be “uncompiled”. Comments The UNCOMPILE command marks the specified application program as “not compiled”. If progdocname had not been compiled (using the COMPILE command) when the UNCOMPILE was issued, the software raises a warning. The UNCOMPILE…
Read more

$ObjCreate

Creates the named ActiveX object. Syntax $ObjCreate (ProgId) Parameters ProgId a string or an expression that evaluates to a string Return Value Returns an object that can be assigned to a variable of type object. Comments An ActiveX or COM object is identified by a GUID (a globally unique number). A ProgId identifies a COM…
Read more

SET WARNINGS

Enables or suppresses the display of warning messages. Syntax SET WARNINGS ON|OFF Comments The WARNINGS option is set ON by default. When WARNINGS is ON, warning messages are displayed. Setting WARNINGS to OFF suppresses the display of warning messages. Warning messages are of the form ***Warning*** … All types of messages can be simultaneously turned…
Read more

en_CAEnglish