trm_set_preferences()

Purpose

Selects user preferences

Old name

#define set_preferences trm_set_preferences

Syntax

void trm_set_preferences(user_name)

Parameters

char user_name[8]

Name of user for whom to select preferences

Description

The trm_set_preferences() function selects the preferences of the specified user. It is called by the %logon function of the DP4 program and QA Build. It takes the following actions:

1. The corresponding menu user record from the SYSTEM database is read

2. An appropriate MENUDATA.SYS is created

3. The flag user.menu_running is set

4. The user name and access levels are filled in

5. The preferences are loaded so that the appropriate attributes (for example, colours) are used

See also

trm_unset_preferences()