prnx()

Purpose

General printing of field functions. (These functions are regarded as obsolete; use the prn_x() functions in place of them.)

Syntax

void prnc(mapnr, fieldnr, data, flags)
void prnd(mapnr, fieldnr, data, flags)
void prnh(mapnr, fieldnr, data, flags)
void prnl(mapnr, fieldnr, data, flags)
void prnn(mapnr, fieldnr, data, flags)
void prnt(mapnr, fieldnr, data, flags)
void prny(mapnr, fieldnr, data, flags)

Parameters

int mapnr

Number of map in which to print

 

int fieldnr

Number of field in which to print

 

<type> data

Variable or pointer to variable holding data to be printed

 

int flags

Parameter specifying print format

 

The <type> of the parameter data depends on which of the prnx() functions is being used, as shown below. Also shown is the corresponding DP4 datatype for each of the prnx() functions:

Function Type DP4 datatype

prnc

char *

C,M,S,U

prnd

datetype *

D

prnh

short

I,J,K

prnl

long

L

prnn

double

N

prnt

timetype *

T

prny

BOOLEAN

Y

 

The parameter flags may take the same values as described for the function show()

Description

These functions display the data in the specified field of the given form. In character data, the number of characters displayed is whichever is the least of the map field width and the database field width, assuming the map field has been verified against the database.

See also

show(), prn()

Example

prnc(2,1,customer.name,DEFAULT);
prnd(2,2,&order.date,LONGYEAR);
prnt(2,2,&order.time,DEFAULT);
prnh(2,3,orderline.quantity,TRAILINGMINUS);
prnl(2,3,logdata,DEFAULT);
prnn(2,4,material.price,DEFAULT);
prny(2,5,job.complete,DEFAULT);