GetUserParameter

Returns the value of a user parameter that has been set with SetUserParameter. (For details on setting user parameters, see SetUserParameter.)

Syntax

<HsvSystemInfo>.GetUserParameter bstrKey, pvarabyData

Argument

Description

bstrKey

String (ByVal). The key that identifies the parameter.

pvarabyData

Variant. Returns the value that has been set for the parameter. This value is returned as a Byte subtype.

Example

This example tests whether a parameter named “Projects” has been defined for the user. If no parameter has been defined, any code placed within the If structure would be executed.

Dim cHsvSystemInfo As HsvSystemInfo, vaGetParam
'm_cHsvSession is an HsvSession object reference
Set cHsvSystemInfo = m_cHsvSession.SystemInfo
cHsvSystemInfo.GetUserParameter "Projects", vaGetParam
If IsEmpty(vaGetParam) = True Then
  …
End If