DataBasic Reference > Statements and Intrinsic Functions > P > PTR Function

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

PTR Function (DataBasic) (m618703+ptr_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

PTR Function

Generates a printer control string that is independent of any type of printer.

Syntax

PTR(function-class,function-subclass{,param}...)

Syntax Elements

function-class is a numeric that specifies the class of a printer independent function.

function-subclass
is a numeric value that specifies the subclass of a printer independent function.

param one or more parameters required by a particular function class and subclass.

Operation

The printer Despooler interprets the string according to the printer independence item-id that has been assigned via the SPM (Spooler Maintenance) program on the SYSPROG account. Thus, one program may output bold, underlined text to a print job, which could be printed correctly on any printer:

Refer to Printer Independent Functions or, for full details, the Printer Definition Maintenancemanual.

Example

PTR(4,1,5,20)

This example invokes the Set Horizontal Tabs function, which is class 4, subclass 1. This example includes two parameters, 5 and 20.

RealityV15.0Comment on this topic