Public Function AddUnit( _ ByVal vCode As String _ , ByVal vName As String _ , ByVal vConstant As Double _ , ByVal vDefinition As String _ , ByVal vCategory As String _ ) As String
estConvertAddUnit("in", "inch", .0254, "m", "length")adds a unit identified by "in" named "inch" which is defined as .0254 meters and that describes length.
estConvertAddUnit("inch", "", 1, "in", "")adds a Synonym-type unit named "inch" as a synonym for the unit "in". Its category will be that of the most-recently-added unit.
estConvertAddUnit("length", "", 1, "m", "length")adds a Category-type unit which will be used to help determine the category described by other types of unit definitions. Notice that the Code and Category are the same. Any measurement which can be converted to meters ("m") will be described as "length".
estConvertAddUnit("m", "meter", 1, "m", "length")adds a Base-type unit on which other unit definitions may be based. Notice that the Code and Definition are the same--the unit is defined in terms of itself.
estConvertAddPrefix Function estConvertAddReplacement Function
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.