scrn_map()

Purpose

General screen input function. This function is regarded as obsolete

Syntax

void scrn_map(mapnr, fieldnr, data, dtype, size,
flags)

Parameters

int mapnr

Number of map containing input field

 

int fieldnr

Number of field from which to get input

 

ANY* data

Pointer to data to contain value that the user input

 

int dtype

Data type of parameter data

 

int size

internal size of data

 

int flags

Parameter specifying display attributes

 

The parameter flags may take the same vales as the global variable scrn_flags in the askf_x() functions

Description

This is a generalised input function, used internally to construct the scrnx_map() functions. It is available to programmers who wish to construct their own input functions.

The data is assumed to be of the type specified by the parameter dtype, and of the size specified by the parameter size. The size is the internal storage size, not the display size.

Return values

Returns the value of the global variable abort_code

See also

scrnx_map()

Example

scrn_map(2,6,&orderline.quantity,'I',sizeof(int),
DEFAULT);