Previous Topic

Next Topic

SetPreference - MaxBasic Function

SetPreference(PreferenceName: String, Value: Number): Number

Set Preference function sets a Workstation Preference to the value entered. Returns the previous value of the workstation preference.

See Application Preference Strings for a list of all available preferences. See also GetPreference function.

Examples are:

General > Mail Integration

PreferenceName: Generic\MAPIStyle

0 = Autodetect (default)

1 = Outlook

2 = Simple MAPI

3 = Full MAPI

Advanced > TAPI diagnostics level

PreferenceName: Generic\TAPIDiagLevel

0 = None

1 = significant messages

2 = all messages

Advanced > Printer diagnostics level

PreferenceName: Generic\PrinterDiagLevel

0 = None

1 = significant messages

2 = all messages

SetPreference function syntax has these named arguments:

Parameter

Description

Preference Name

Required. The workstation preference to be set. Some valid values are "Generic\MAPIStyle", "Generic\TAPIDiagLevel" or "Generic\PrinterDiagLevel".

Value

Required. Value to set the workstation preference to.

In This Section

Application Preference Strings

See Also

Application Functions

Book Contents

Book Index