IsOrgByPeriodApplication

Indicates whether the OrgByPeriodApplication application setting is on or off for the application to which the user is connected. In other words, this method indicates whether the Organization by Period feature is enabled.

Syntax

<HsvMetadata>.IsOrgByPeriodApplication pvarbIsEnabled

Argument

Description

pvarbIsEnabled

Boolean. Returns TRUE if the OrgByPeriodApplication application setting is on, FALSE if it is off.

Example

The following example tests the OrgByPeriodApplication application setting. If the setting is on, any code placed within the If structure would be executed.

Dim bOrgEnabled As Boolean
'g_cMetadata is an HsvMetadata object reference
g_cMetadata.IsOrgByPeriodApplication bOrgEnabled
If bOrgEnabled = True Then
   … 'Insert code here
End If