ApplyUserSettings

Saves user preferences that were changed in the current session. The method includes a Boolean argument that specifies whether the language setting should also be saved.

Syntax

<HFMwSession>.ApplyUserSettings vbSaveLanguage

Argument

Description

vbSaveLanguage

Specifies whether the current language setting should be saved. Pass TRUE to save the current language setting, FALSE otherwise.

Tip:

The language property gets and sets the current language setting.

Input argument.

Example

This function takes a decimal separator of either a comma or a period, then applies the opposite character as the thousands separator.

Function setSeparators(sDec)
' This example takes only periods and commas as valid values
' for the parameter. The If structure tests the parameter;
' if some other character is passed, the separators are not
' changed, and FALSE is returned.
If sDec <> "." and sDec <> "," Then
  setSeparators = FALSE
Else
  'g_cHFMSession is an HFMwSession object reference
  g_cHFMSession.decimalSeparator = sDec
  If sDec = "." Then
    g_cHFMSession.thousandsSeparator = ","
  Else
    g_cHFMSession.thousandsSeparator = "."
  End If
  ' If the separators are changed, TRUE is returned.
  g_cHFMSession.applyUserSettings TRUE
  setSeparators = TRUE
End If
End Function