P2D Undefined Command

P2D AmigaOnly

Strips the measurement system abbreviation from a coordinate and optionally converts it to another measurement system.

p2d (coord[,system])

coord/s The coordinate to strip and convert.

system/k The measurement abbreviation of the system to which to convert.

Options: INCHES i
CENTIMETERS cm
MILLIMETERS mm
PICAS p
POINTS pt
PRINTERPICAS pp
PRINTERPOINTS ppt
CICEROS c
DIDOTPOINTS d
FEET f
METERS m

Default=current.

This is a function, not a command. It is only available when the Soft-Logik ARexx support library is added to your ARexx script. i.e., addlib("softlogik:libs/slarexxsupport.library", ¨ 0, -30)

Returns:

@remark newpanel

Examples:

getbox position coord
/* adds 2 to the width in inches */
coord.right=p2d(coord.right,'i')+2
/* appends the inch abbreviation */
/* because the msys could be anything */
coord.right=coord.right||'i'
/* resets the coordinates with the new width value */
editbox position coord.left coord.top coord.right ¨
   coord.bottom

 

P2D  Command Definition  url:PGScmd/p2d
  created:2006-03-30 17:46:00   last updated:2006-03-30 17:46:00
  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For P2D
There are no user contributed comments for this page.