Skip to content

UnitInch - Built-in Miscellaneous Function

Purpose

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

Syntax

UnitInch(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 1 inch
return UnitInch(1.0)

Notes

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