Categoria: ZIM 4GL Language Reference

The Original Internet Language

$isupper

Tests if the letters in a character string are uppercase. Syntax $isupper(string) Parameters string a character string or an expression that evaluates to a character string Return Value 1-character binary string. Evaluates to 1 ($True) if string meets the validation test; otherwise, evaluates to 0 ($False). Comments This function tests if a particular character string…
Leia mais

$isalphabetic

Tests if a character string contains only letters. Syntax $isalphabetic(string) Parameters string a character string or an expression that evaluates to a character string Return Value 1-character binary string. Evaluates to 1 ($True) if string meets the validation test; otherwise, evaluates to 0 ($False). Comments This function tests if a particular character string is alphabetic.…
Leia mais

$islower

Tests if the letters in a character string are lowercase. Syntax $islower(string) Parameters string a character string or an expression that evaluates to a character string Return Value 1-character binary string. Evaluates to 1 ($True) if string meets the validation test; otherwise, evaluates to 0 ($False). Comments This function tests if a particular character string…
Leia mais

$value

Provides a default value for an expression that can be $Null. Syntax $value(expression1,expression2) Parameters expression1 any expression expression2 any expression Return Value Same as the selected expression. Comments If expression1 is not $Null, $value returns the value of expression1; otherwise, it returns the value of expression2. Example detail line “Employee Number: ” $value(EmpNum,”N/A”) Traps $Null…
Leia mais

$StartPath

File system path where one of the Zim executables started. Return Value A character string. Cannot be reset by an application program. Example C:\MyDirSubDir> zxclient -n mybase After invoking ZXCLIENT, in the prompt: > OUTPUT $startpath C:\MyDirSubDir See Also $ClipPath $DBPath $ImagePath $WorkPath $ZimPath $UserPath

$dayname

Determines the day name associated with a specified date value. Syntax $dayname(date) Parameters date a data, or an expression that evaluates to a date, in the form YYYYMMDD Return Value Character string. Comments This function extracts day information from standard date values. Date is often the system variable $Date. The values returned by the $dayname…
Leia mais

$isalphanumeric

Tests if a character string contains only letters and digits. Syntax $isalphanumeric(string) Parameters string a character string or an expression that evaluates to a character string Return Value 1-character binary string. Evaluates to 1 ($True) if string meets the validation test; otherwise, evaluates to 0 ($False). Comments This function tests if a particular character string…
Leia mais

$leftjustify

Left-justifies a character string. Syntax $leftjustify(string) Parameters string a character string or an expression that evaluates to a character string Return Value Character string. Comments String is left-justified in a space that is $length(string) characters long. Leading spaces in string are ignored. Example $leftjustify(” abcde”) Evaluates to “abcde “. $leftjustify(var1) Evaluates to “3 ” if…
Leia mais

$absolute

Returns the absolute value of a number. Syntax $absolute(number) where number a number, or an expression that evaluates to a number Return Value Number, positive, with the same number of decimal places as number. Comments Use $absolute to ensure that a number is positive (for functions such as $sqrt, for example). $absolute returns the absolute…
Leia mais

$tolower

Converts alphabetic characters to lower case. Syntax $tolower(source) Parameters source any value, or an expression that yields any value Return Value Character string. Comments Returns a character string in which all letters are lower case. If source is not of a character data type, it is converted to a character data type before the function…
Leia mais

pt_BRPortuguese