map_yes()

Purpose

Obtains Boolean response from user

Old name

#define yes map_yes

Syntax

int map_yes(mapnr, default_answer);

Parameters

int mapnr

Map number to use for confirmation

 

int default_answer

The default Boolean value to display

Description

The map_yes() function gets a Boolean response from the user by calling the map_askf_y() function. It is more convenient to use than the function map_askf_y(), because no parameter is required to hold the reply.

This function is normally used to get a confirmation from the user that the program may take some subsequent action, for example deleting records.

The global variable jump is set to FALSE, so the reply field cannot be by-passed by pressing <Tab>.

Return values

Returns TRUE if user enters YES, otherwise FALSE

See also

map_askf_y(), sys_del_confirm()