ToStr Method

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:09

Description

Returns default measurement string, e.g. "10pt" for the specified value in millipoints.

The default measurement string is represented by the default measurement unit (DefHorzMis="pt" and DefMis="pt" in GlobalConfig).

The result depends also on the 1/72 inch point global option  (BigPoints="false" or BigPoints="true" in GlobalConfig).

Syntax

strValue = Units.ToStr(mValue)

mValue

Required. A numeric expression in millipoints, e.g. 10000.

Example

strValue = Units.ToStr(10000)        

Returns 10pt if "pt" is set as the default unit, and if BigPoints="false" in GlobalConfig, or 9.96pt if it's True.

See also

ToVal Method, CheckStr Method