SetSession

Points to the HsvSession object for the application in which rules or member lists are being loaded or extracted.

Caution!

You must call SetSession before calling any of the other HsvRulesLoadACV object’s properties or methods, otherwise an error will occur.

Syntax

<HsvRulesLoadACV>.SetSession(pIHsvSessionUnk, 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.

lLanguageID

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

Tip:

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

Return Value

Boolean. Returns TRUE if SetSession succeeds, FALSE otherwise.

Example

SetSession is used in the Example for LoadMemberListRules.