Category: ZIM 4GL Language Reference

The Original Internet Language

SET INPUT

Specifies the current input document. Syntax SET INPUT docname [FILEPATH options] Parameters docname The name of the application document to which all output is to be sent. Can also be one of the two pre-defined application documents, terminal or printer. FILEPATH options Specifies that the input document will be governed by the options as follows:file://<the…
Read more

$GetJSON

Reads a text file containing a JSON structure and places its compressed contents in a variable. Syntax $getjson(<a variable>, <a document name>) Parameters a variable a variable, a field name or a form field name receiving the contents of the document a document a valid Zim:X document name pointing to a JSON structured text file…
Read more

$FindJSON

Finds data within a JSON record using selection criteria. Syntax $findjson(source, argument-1, argument-2, …, argument-n) Parameters source a field, a variable, a form field or a constant containing a JSON structure argument-1 selection criteria to be searched within the specified source argument-2 secondary selection criteria to be searched within the result just found by the previous selection…
Read more

How To Call Procedures

The syntax of a call to a procedure is procname (expression) Parameters procname The name assigned to the procedure in its PROCEDURE or LOCALPROCEDURE command. expression Any value expression. Comments The list of expressions must be enclosed in parentheses; even when no expressions are required, the parentheses must still appear. At the prompt level, you can issue a call to the main procedure of any procedure program. Within a procedure program, you can issue a call to any…
Read more

How To Name Objects

Names for objects defined in the Object Dictionary must conform to the following conventions: The name can be from 1 to 18 characters in length. The name can contain only letters (a-z, A-Z), digits (0-9), dollar signs ($), and underscores (_). The name must begin with a letter or a dollar sign. Most names must be unique among objects of the same type in the same application…
Read more

Object permissions

There are two types of permissions – object permissions (EntitySets, relationships, and directories) and field-level permissions. Field level permissions take precedence over object permissions. The permissions are set as follows: The following chart summarizes the permissions needed in order to successfully execute a given form of data manipulation on an object where permissions are currently in place. Definitions are as follows: Owner refers to the user who…
Read more

Case Sensitivity

Except in certain limited instances (e.g., security passwords, values held in objects of data type CHAR and VARCHAR), the software is case insensitive. Insensitivity to case means that the software makes no distinction between uppercase and lowercase letters in any part of a statement. For example, the following statements are identical, provided LastName is not a CHAR or…
Read more

Data Types

Any value expression used in an application – including the names of objects that represent values – must conform to one of the available data types. Data Types and Objects Objects that represent values (constants, variables, fields and form fields) have an explicit data type attribute defined in the Object Dictionary. Value expressions that are not defined objects take implicit data types. The data type of…
Read more

Output Masks

Output masks are employed to format the output of fields, form fields, and data values in output operations. The MASK format option in Zim Reports specifies an output mask pattern for a report item. The $mask function specifies an output masking pattern to be applied to fields, form fields, and data values and returns a character string with the result of the masking operation. The Field Mask attribute defines the expected output format of a field’s data value…
Read more

Report Item Format Options

Any meaningful combination of the following options can be applied to any value displayed in a report: CENTER The Report Generator is to center the associated item on the current line. Centering is relative to the PAGEWIDTH specified in the REPORT FROM command. The default value for PAGEWIDTH is 80. COLUMN n The Report Generator is to start display of the associated item at character column n. COLUMN…
Read more

en_CAEnglish