CorelScriptTools.LengthConvert
Function LengthConvert(FromUnit As Long, ToUnit As Long, Value As Double) As Double
Member of CorelScriptTools
The LengthConvert method converts a number from one length measurement to another.
Parameter
|
Description
|
FromUnit
|
Any number from 1 to 7, indicates the unit of measurement from which to convert:
1 = inches
2 = centimeters
3 = points
4 = Ciceros
5 = didots
6 = picas
7 = CorelDRAW and VENTURA units (tenths of a micron)
|
ToUnit
|
Any number from 1 to 7, indicates the unit of measurement to convert to
1 = inches
2 = centimeters
3 = points
4 = Ciceros
5 = didots
6 = picas
7 = CorelDRAW and VENTURA units (tenths of a micron)
|
Value
|
Specifies the value to be converted
|
- Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.
The following code example converts one inch to tenths of a micron. The variable x_microns equals 254,000.
Copyright 2007 Corel Corporation. All rights reserved.