HsvResourceManager Type Library Overview

The HsvResourceManager type library provides an interface to the Resource Manager. The Resource Manager exposes error message strings for Financial Management. If a Financial Management release has been localized into a given language, the error message strings will also be localized.

For information on setting HsvResourceManager object references and details on the object’s methods, see HsvResourceManager Object Methods

The following table lists the HsvResourceManager object’s methods.

Table 56. HsvResourceManager Object Methods

Method

Description

GetAvailableLanguages

Returns arrays that identify the languages for which resources are available.

GetCurrentVersion

Returns the version number of Financial Management that is displayed to end-users.

GetCurrentVersionInUserDisplayFormat

Returns the version number of Financial Management that is displayed to end-users.

GetFormattedDateTime

Converts a given timestamp to a formatted string.

GetFormattedDateTimeForLanguage

Returns a string representation of a double-byte date/time value.

GetFormattedError

Returns two strings in a given language that provide information on an error. One string contains a user-readable description of the error; the other string contains technical details for debugging purposes.

GetFormattedErrorWithLineFeed

Returns two strings in a given language that provide information on an error. One string contains a user-readable description of the error; the other string contains technical details for debugging purposes, with a specified line feed character applied to the technical details string.

GetFormattedResourceString

For internal use.

GetHelpDirectoryForLanguageID

Returns the name of the subdirectory that contains the Financial Management help system for a given language.

GetHFMLanguageIdFromUserLanguages

Returns the Financial Management ID for the language identified by a given language code.

GetLanguageCountryCodeFromLanguageId

Returns the two-letter language code for a given language ID.

GetLocaleIdFromLanguageId

Returns a Windows locale ID for the given Financial Management language ID.

GetResourceString

For internal use.

GetResourceStringFromHR

Returns the resource string for an HRESULT in the specified language.

GetUserDisplayDataTimeFormats

Returns an array of strings that describe the date and time formats into which Financial Management can convert timestamps.

GetUserLanguageFromHFMLanguageId

Returns the two-letter language code for the language represented by a given Financial Management language ID.

GetWindowsDateFormat

Returns the Windows date separator character and short date format for the computer.

GetWindowsDateFormatforLocale

Returns the Windows date format for the given locale.

Initialize

Specifies the tier for which resources are needed.

Caution!

You must call Initialize before calling any of the other HsvResourceManager methods.