ReportUnits.GetFactorUnitToInch (

Static Function GetFactorUnitToInch ( Unit As String [ , Resolution As Integer ] ) As Float

Returns value in inches of the provided unit.

  • Unit is the unit you need the factor for.

  • Resolution

Only the units in AllowedUnits are valid.


Public Sub Main()

  Dim f As Float
  f = GetFactorUnitToInch("mm")
  Print f


Above example will print 0.03937.

So 1 milimeter = 0.03937 inches.