Extracts seconds information from a standard time value.
Syntax
$seconds(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.
Example
$seconds($Time)
Evaluates to 59 when $Time has the value 23595999.
See Also
$hours
$minutes
$ticks
About Functional Expressions
Determines which exponent of base 10 yields a given value.
Syntax
$log10(number)
Parameters
number | a positive number or an expression that evaluates to a positive number |
Return Value
Number, with the same number of decimal places as number.
Example
let var1=$log10(100)
The above expression means “the exponent of base 10 that yields the value 100” and evaluates to 2.
See Also
$exp
$log
$sqrt
About Functional Expressions
Determines which exponent of the natural base (e) yields a given value.
Syntax
$log(number)
Parameters
number | a positive number or an expression that evaluates to a positive number |
Return Value
Number, with the same number of decimal places as number.
Example
$log(7.389)
The above expression means “the exponent of the natural base that yields the value 7.389” and evaluates to 2.000.
See Also
$exp
$log10
$sqrt
About Functional Expressions
Extracts “hours” information from a standard time value.
Syntax
$hours(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.
Example
$hours($Time)
Evaluates to 23 when $Time has the value 23595999.
See Also
$minutes
$seconds
$ticks
Calculates the hyperbolic sine of a number.
Syntax
$sinh(number)
Parameters
number | a number, or an expression that evaluates to a number, representing an angle (in radians) |
Return Value
Number, with the same number of decimal places as number.
Comments
This function calculates the hyperbolic sine of a number.
Example
let vAngle = $sinh(3.000)
Evaluates to 10.018.
See Also
$asin
$cosh
$sin
$tanh
Calculates the hyperbolic cosine of a number.
Syntax
$tanh(number)
Parameters
number | a number, or an expression that evaluates to a number, representing an angle (in radians) |
Return Value
Number, with the same number of decimal places as number.
Comments
This function calculates the hyperbolic tangent of a number.
Example
let vAngle = $tanh(3.000)
Evaluates to 0.995.
See Also
$atan
$cos
$sin
About Functional Expressions
Returns the number of the disk file associated with a specified object.
Syntax
$filenum(objname)
Parameters
objname | The name of an EntitySet, relationship, application directory, or application document. |
Return Value
For EntitySets, relationships, and application directories, $filenum returns the number associated with the file that contains the specified object.
For application documents, $filenum returns the number associated with the file that contains the application directory in which the application document was created.
See Also
$filepath
Set the properties of an ActiveX object.
Syntax
$ObjSet[Property] (Object, PropertyName, <>)
Parameters
Object | an object variable or formfield of type OLE |
PropertyName | a string or an expression that evaluates to a string |
PropertyValue | one or more strings, expressions or variables |
Return Value
Returns a result of TRUE if successful.
Comments
This syntax can be used to set basic or extended properties of an ActiveX component.
Example
Assume you have a form called treeview with a treeview component on it called tree.
Assume vResult is a variable of type char 1. The syntax to direct the Treeview component to display lines among sibling nodes, parent nodes and the root node is
let vResult = $ObjSetProperty (treeview.tree, 'linestyle', 1)
Warning
COM objects are being discontinued by Microsoft and may not be available in future releases of Zim-X.
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 Also
$round
$tonumber
About Functional Expressions
Decimals and Rounding
Decimals in Functional Expressions
Number Literals
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 second, $ticks($Time) evaluates to 0, because the last two digits of $Time are always zeros.
Example
$ticks($Time)
Evaluates to 99 when $Time has the value 23595999.
See Also
$hours
$minutes
$seconds