ReportUnits.GetFactorUnitToInch (gb.report)
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.
Example
Public Sub Main()
Dim f As Float
f = GetFactorUnitToInch("mm")
Print f
End
Above example will print 0.03937.
So 1 milimeter = 0.03937 inches.