<-- Previous || Up || Next -->

Function Call Interface Help Sub
Units Class

Overview: The registered/commercial version of Entisoft Units includes the source code to all of the conversion functions and programs. It lets you integrate conversion calculations into any of your Microsoft Office applications. Microsoft Access users can use the conversion functions within Queries. Access developers can use the conversion functions within Access Queries, Forms, Reports, and Modules. Microsoft Excel users can use the conversion functions within Worksheet and Chart formulas. Excel developers can use the conversion functions within Excel worksheets, charts, and modules. Visual Basic developers can use the conversion functions within compiled Visual Basic projects. Microsoft Project users can use the conversion functions within Project module code. Other users running Windows can use the stand-alone program to perform measurement conversions.
Functions: The source code contains several Visual Basic functions that you can call from various contexts. The following list briefly introduces the important conversion functions:
       estConvert
performs measurement conversions given a numeric measurement, the units of that measurement, and the desired units for the result. For example, estConvert(5, "feet", "meters") converts 5 feet into meters, returning 1.524.
       estConvertSpecial
performs measurement conversions to and/or from multiple related units, as well as supporting fractional numbers and the rounding of results. For example, estConvertSpecial("5' 11 13/16""", "m", "", 1000, False) converts 5 feet 11 13/16 inches into meters, returning 1.824.
       estConvertString
performs similar conversions given a string describing the conversion to be performed. For example, estConvertString("5 feet to meters") performs the same conversion as in the above example.
       estConvertEnumerate
enumerates the units represented by an expression. For example, estConvertEnumerate("KW*hr") returns "kilowatt*hour".
       estConvertFindCategory
determines the physical measurement represented by an expression. For example, estConvertFindCategory("KW*hr") returns "energy".
       estConvertCheck
performs several consistency checks of the currently-defined measurements and prefixes.
       estConvertLoadMultipleLines
loads the unit definitions, prefix definitions, global text definitions, and data files specified by the argument.
       estConvertAddUnit
registers a new conversion factor which Entisoft Units can use within conversion calculations. For example, estConvertAddUnit("in", "inches", 1/12, "foot", "length") defines a unit of length named "inches" with identifier "in" as 1/12 of a foot.
       estConvertAddPrefix
registers a new prefix which Entisoft Units can use within conversion calculations. For example, estConvertAddPrefix("m", "mega", 1000000) adds the prefix "mega" identified by "m" as 1,000,000 (10^6).
       estConvertAddReplacement
registers a new text string replacement which Entisoft Units will attempt to apply during each conversion calculation. For example, estConvertAddReplacement("inch", "in", 0) adds the synonym "inch" which is replaced everywhere that it occurs within expressions by "in".
See Also:
    SoftwareReleasesAndVersionNumbersHelp Topic
    SystemRequirementsHelp Topic

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.