$seconds

Extracts seconds information from a standard time value.

Syntax

$seconds(time)

Parameters

timean 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

$log10

Determines which exponent of base 10 yields a given value.

Syntax

$log10(number)

Parameters

numbera 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

$log

Determines which exponent of the natural base (e) yields a given value.

Syntax

$log(number)

Parameters

numbera 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

$hours

Extracts “hours” information from a standard time value.

Syntax

$hours(time)

Parameters

timean 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

$sinh

Calculates the hyperbolic sine of a number.

Syntax

$sinh(number)

Parameters

numbera 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

$tanh

Calculates the hyperbolic cosine of a number.

Syntax

$tanh(number)

Parameters

numbera 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

$filenum

Returns the number of the disk file associated with a specified object.

Syntax

$filenum(objname)

Parameters

objnameThe 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

$ObjSetProperty

Set the properties of an ActiveX object.

Syntax

$ObjSet[Property] (Object, PropertyName, <>)

Parameters

Objectan object variable or formfield of type OLE
PropertyNamea string or an expression that evaluates to a string
PropertyValueone 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.

$ticks

Extracts “ticks” information from a standard time value.

Syntax

$ticks(time)

Parameters

timean 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

pt_BRPortuguese