Returns
the units of a unitspan. A unitspan is a string consisting of a
number followed by a unit name.
Parameters
Parameter
|
Description
|
s
|
A valid string containing a numeric value
and a valid unit of measurement (unitspan). Recognized units of
measurement are:
in, inches
mm, millimeters
cm, centimeters
pt, points
pc, picas
mp, millipoints
If s is
invalid, the function returns in.
|
ExamplesThe
following expressions are examples that use the UnitType function:
Expression
|
Results
|
UnitType("36 in")
|
in
|
UnitType("2.54centimeters")
|
cm
|
UnitType("picas")
|
pc
|
UnitType("2.cm")
|
cm
|
UnitType("2.zero cm")
|
in
|
UnitType("kilometers")
|
in
|
UnitType(Size[0])
|
Returns the measurement value of the first
occurrence of Size.
|
|
|
|