Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Escape! V3.0 - <b>hpc2i()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
hpC2I()

Converts horizontal character spacing to inches


Syntax

hpC2I(<nCol>)


Parameters

<nCol>
The column coordinate to convert to inches.


Returns

<n>
Inch equivalent of passed column coordinate.

-10
ESC_FONT was not initialized, or was released.

-12
Wrong number of parameters passed.


Remarks

One of the qualities of the Escape! functions that makes them so
versatile is the ability to designate positions either by specifying row
and column, or by specifying inches; whichever is best depending on
your needs.  hpC2I() takes this even further by allowing you to use
character spaces, within a function that calls for inches.


Support By

All HP Laserjet Printers


Example

Suppose you want to place a string at the bottom of your page and lined
up on the left with the rest of your text:

hpPrintOn()
hpConfig()
hpSetFont()
.
.
.
@ line,5 say Field1
@ line,15 say Field2
@ line,25 say Field3
.
.
.

****
* print report number at the bottom of
* the page (10 inches down), and lined up
* on the left with field1
****
hpIAtSay(10, hpC2I(5), 'Report # 01-25-00')
hpReset()
hpPrintOff()

See Also: hpS2I() hpL2I() hpIAtSay()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson