Categoria: ZIM 4GL Language Reference

The Original Internet Language

_ (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…
Leia mais

DDEConnect

DDEConnect Sets up the access to the remote application. Syntax DDEConnect ( out tErrCode,             out tServ,             in dde_app,             in dde_topic) Parameters tErrCode A returned error code. It must be a longint. tServ The returned connection handle. It also must be a longint. dde_app A string containing the application name. dde_topic A string containing the topic name. Comments The procedure is supplied with the application…
Leia mais

DDEDisconnect

DDEDisconnect Terminate access to the remote application. Syntax procedure DDEDisconnect (out tErrCode, inout tServ) Parameters tErrCode longint, an error code tServ longint, connection handle Comments DDEDisconnect terminates the access to the remote application. The filename is ddedisc.pgm. Example For example, given that DDE_Err and hServ are of type longint and that hServ has been set…
Leia mais

$screensave

Captures a bitmap image of the screen and writes it to a file. Syntax $screensave(filename) Parameters filename a character string, or an expression that evaluates to a character string Return Value Returns “1” ($True) if no errors were detected when the image was written to filename. Otherwise, returns “0” ($False). Comments Filename must be the…
Leia mais

$transmitkey

The name of the last EXIT or TRANSMIT key pressed. Syntax $transmitkey Return Value Character string. Comments EXIT and TRANSMIT keys are defined using the FORM SET or WINDOW SET ACCELERATOR commands. Normally, a TRANSMIT key cannot terminate FORM INPUT while a “required” field has no value. However, if TRANSMIT key is pressed while the…
Leia mais

$printersetup

Displays the Printer Setup common dialog box. Syntax $printersetup() Return Value Evaluates to “1” ($True) if no errors were detected in the dialog. Otherwise, evaluates to “0” ($False). Comments This function is available only on Windows systems. The Printer Setup common dialog box contains a list of printers mounted to your Windows network. To access…
Leia mais

$ObjGetProperty

Get the properties of an ActiveX object. Syntax $ObjGet[Property] (Object, PropertyName,<>) Parameters Object an object variable or formfield of type OLE PropertyName a string or an expression that evaluates to a string Parameters optional parameters as per the object’s specifications Return Value Returns a result that can be a string or an ActiveX object. Comments…
Leia mais

$ObjEventParameter

Obtain information about a particular parameter created by the current event raised by a COM component. Syntax $ObjEventParameter (ParameterNumber) Return Value Returns a result that can be a component object or a string for the passed parameter number. Comments The Event structure displays information about the last event that caused form input to terminate. The…
Leia mais

$round

Rounds a number to the nearest integer. Syntax $round(number) Parameters number a number, or an expression that evaluates to a number Return Value Number, with no decimal places. Example $round(2.501) Evaluates to 3. $round(2.4999) Evaluates to 2. $round($substring(“123.456”,3,3)) Evaluates to 3. See Also $money $tonumber $truncate

$ansitodos

Translates data from one character set to another. Syntax $ansitodos(string) Parameters string a character string or an expression that evaluates to a character string Comments Converts the data in string from the ANSII character set to the OEM character set. See Also $DBCharSet $dostoansi About Character Literals SET DOCUMENT FORMAT

pt_BRPortuguese