SecurityClass

Gets the security class for the specified member. This function can be used in these types of rules:

Syntax

HS.<Object>.SecurityClass("Element")
HS.<Object>.SecurityClass("")
HS.<Object>.SecurityClass(Var1)

Note:

Use a blank string ("") to apply this function to the current member.

Table 80. Syntax for SecurityClass Function

Parameter

Description

<Object>

One of these object keywords:

  • Account

  • Scenario

  • Entity

  • Custom1...4

Element

Depending on the object selected, name of a valid member of one of these dimensions:

  • Account

  • Scenario

  • Entity

  • Custom1...4

Var1

A VisualBasic variable.

Return Value

The name of the security class assigned to the specified member.

Example

In this example, if Class1 is the security class assigned to the Cash account, then statements between the If...Then and End If statements are executed:

If HS.Account.SecurityClass("Cash") = "Class1" Then
  ...
End If