ReportUnits.ReportUnitsConverter (gb.report)

Static Function ReportUnitsConverter ( Value As Float, Unit1 As String, Unit2 As String ) As Float

Converts a value from unit1 to unit2.

  • Value is the value to be converted.

  • Unit1 is the unit the value has to be converted from.

  • Unit2 is the unit the value has to be converted to.

Only the units in AllowedUnits are valid.

Example

Public Sub Main()

  Dim f As Float
  f = ReportUnitsConverter(1.5, "mm", "pt")
  Print f

End

Above example will print 4.25196.

So 1.5 centimeter = 4.25196 points.