Category: ZIM 4GL Language Reference

The Original Internet Language

PAGE LEFT

Specifies the vertical heading for each page in a column-oriented report. Syntax PAGE LEFT reportitem [:format:] Parameters reportitem Any valid expression. Complex expressions must be enclosed in parentheses. When you specify more than one expression, each must be separated from the next by at least one space. format A set of instructions defining the format…
Read more

WHERE

Controls the evaluation of other expressions. Syntax expression1 WHERE expression2 Parameters expression1 A value expression. expression2 A logic expression using conditional and Boolean operators. Return Value If expression2 is logically true, the value of expression1; otherwise, $Null. Example let i = { 1 where Age < 10, 2 where Age between 10 and 30, 4 where…
Read more

TRANSACTION

Starts an explicit transaction. Syntax TRANSACTION [READ] Parameters READ This option is ignored. Comments TRANSACTION marks the start of a sequence of commands that are to be handled as a single transaction. The transaction can be terminated either with an ENDTRANSACTION or  with a QUITTRANSACTION command. TRANSACTION sets the system variable $InTransaction to $True. Example…
Read more

$UserFunction

Invokes a special function built by the user. Syntax $userfunction(expression-1, expression-2, …) Parameters expression-1 Any value, or an expression that yields any value. expression-2 Any value, or an expression that yields any value. Return Value The return value is determined by the type and length of expression-1. Comments for Windows Environments On Windows environments, the…
Read more

GENERATE

Generates application code from a template. Syntax GENERATE zimprog [ (parm)|string ] Parameters zimprog The name of an application document that contains an application program template. parm An expression whose value is to be passed to zimprog. Multiple parameters must be separated from one another by commas. string A string that is passed to zimprog…
Read more

SET INPUT TIMEOUT

Controls how long a FORM or MENU INPUT command waits for user interaction. Syntax SET INPUT TIMEOUT [num] Parameters num The number of seconds to wait for user input. Can be an integer constant (e.g., 15, 200); a variable, form field, or parameter that evaluates to an integer. Valid values for num range from -1…
Read more

DDEPoke

DDEPoke Assigns a value to a specific item in a remote application. Syntax procedure DDEPoke (out tErrCode, inout tServ, in dde_item, in dde_val) Parameters tErrCode longint, an error code tServ longint, connection handle dde_item char, item name dde_val char, value of the item Comments DDEPoke assigns a value to a specific item in a remote application.…
Read more

GOTO PREVIOUS

Branches from an exception handler to the command that caused the exception. Syntax GOTO PREVIOUS Comments GOTO PREVIOUS is used only in an exception handler and only to branch to the command that caused the exception to occur. GOTO PREVIOUS exits the exception handler, and closes it in the same way as ENDON. Example Note:…
Read more

SET INPUT FORMAT

Establishes the format for data input. Syntax SET INPUT FORMAT NORMAL|COMMADELIMITED Comments The INPUT FORMAT option is NORMAL by default. Normally, the ADD and CHANGE commands look for input whose format is a simple data stream, separated by delimiter characters. SET INPUT FORMAT enables these commands to read data in “comma delimited” format from unstructured…
Read more

PAGE FOOTING

Specifies the page footing for a report. Syntax PAGE FOOTING reportitem [:format:] Parameters reportitem Any valid expression. Complex expressions must be enclosed in parentheses. When you specify more than one expression, each must be separated from the next by at least one space. format A set of instructions defining the format for the associated reportitem.…
Read more

en_CAEnglish