PrintX

Description

Reports the x coordinate of the print cursor.

Syntax

PrintX ( printjobnumber )

Argument

Description

printjobnumber

The number the PrintOpen function assigned to the print job


Return value

Integer. Returns the x coordinate of the print cursor if it succeeds and -1 if an error occurs. If any argument's value is null, PrintX returns null.

Examples

These statements set LocX to the x coordinate of the cursor and print End of Report an inch beyond that location:

integer LocX
long Job
Job = PrintOpen()
... //Print statements
LocX = PrintX(Job)
Print(LocX+1000, "End of Report")

See also

PrintY