GetResourceStringFromHR

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

Syntax

<HsvResourceManager>.GetResourceStringFromHR(lLanguageId, hr)

Argument

Description

lLanguageId

Long (ByVal). Identifies the language for which the error message string will be returned. Pass one of the HFMConstants type library constants listed in Supported Language Constants.

hr

Long (ByVal). The HRESULT that identifies the error.

Tip:

In Visual Basic and VBScript, you can get the HRESULT with the Number property of the Err object.

Return Value

String. Returns the resource string.