Click or drag to resize

PCol Function

X#
-- todo --
Returns the current column position of the printer's print head.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION PCol() AS LONG
Request Example View Source

Return Value

Type: Long
PCol( )Return Value Numeric
Remarks
The value PCol( ) returns is relative to the current setting of the left printer margin. You can set the left margin with Set MARGIN or by storing a value to the system memory variable _PLOFFSet.
PCol( ) is especially useful for relative addressing of printed text.
You can use the $ operator in place of PCol( ).
Examples
X#
1Clear
2@ PROW( ), PCol( )+12 SAY 'Contact person'
3@ PROW( ), $+12 SAY 'Contact person'
See Also