Skip to content

UnitPt - Built-in Miscellaneous Function

Purpose

Converts the number of points (1/72 inch) provided in the argument to the unit (TWIPS used by DataFlex Reports.

Syntax

UnitPt(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 line width to half a point
return UnitPt(0.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