Description
Checks if a string containing a GN4 measure is syntactically correct, returning TRUE if it is correct.
Syntax
bValue = Units.CheckStr(strMeasure) |
strMeasure
Required. A string expression, containing a valid GN3 measure, e.g. 10pt.
Examples
bValue = Units.CheckStr("10pt") |
Returns TRUE.
bValue = Units.CheckStr("10mt") |
Returns FALSE, as 'mt' is not a valid measurement unit
bValue = Units.CheckStr("10,7pt") |
Returns TRUE, but the part after comma will stripped automatically, e.g. it would be as you would specify "10pt".
See also