askf()

Purpose

Generalised input function

Old name

#define scrn_field askf

Syntax

boolean askf(mapnr, fieldnr, data, dtype, size, flags)

Parameters

int mapnr

Number of the map containing the field

int fieldnr

Number of the field from which to input

ANY* data

Pointer to the data which is to hold the result of the field input

int dtype

The data type of the field input

int size

The internal size of the parameter dtype

 

int flags

Specifies the display format, acting like the global variable scrn_flags

Description

This is a generalised input function, used internally to construct the askf_x() 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

askf_x()

Example

askf(2,6,&orderline.quantity,2,'I',DEFAULT);