Skip to content

UnitCm - Built-in Miscellaneous Function

Purpose

Converts the number of centimeters provided in the argument to the unit (TWIPS used by DataFlex Reports.

Syntax

UnitCm(exp)

Arguments

Argument Description
exp Required. Any valid expression that returns a number.

Returns

Variant with a signed integer (VT_I4 or VT_I8) value

Example

// to set the location to 2.5 centimeter
return UnitCm(2.5)

Notes

  • When exp cannot be converted to a number, a runtime error is generated.
  • The return value conforms to the standards for variant datatypes