SetSessionAndResource

Specifies a reference to a HsvResourceManager object.

Syntax

<HsvRulesLoadACV>.SetSessionAndResource(pIHsvSessionUnk, pIUnkResourceManager, lLanguageID)

Argument

Description

pIHsvSessionUnk

HsvSession object (ByVal). The HsvSession object that was returned by HsxClient.OpenApplication or HsxClientUI.OpenApplication when the application was opened.

For information on HsxClient.OpenApplication, see OpenApplication; for information on HsxClientUI.OpenApplication, see OpenApplication.

pIUnkResourceManager

Object (ByVal). The HsvResourceManager object to reference.

lLanguageID

Long (ByVal). Specifies the language in which any error messages are displayed. Pass one of the HFMConstants type library constants listed in Supported Language Constants.

Tip:

To display error messages in the installed language, pass the HFM_LANGUAGE_INSTALLED constant.

Return Value

Boolean. Returns TRUE if SetSessionAndResource succeeds, FALSE otherwise.