IsICP

Returns a Boolean that indicates whether an entity is an intercompany entity. In other words, this method returns the value that has been defined for an entity’s IsICP attribute.

Syntax

<HsvEntities>.IsICP lItemID, pbIsICP

Argument

Description

lItemID

Long (ByVal). The member ID of the entity.

pbIsICP

Boolean. Returns TRUE if the entity is an intercompany entity, FALSE if it is not.

Example

The following example tests whether an entity specified in a combo box is an intercompany entity. If it is, any code placed within the If structure would be executed.

Dim cEntities As HsvEntities, cTreeInfo As IHsvTreeInfo
Dim sEntity As String, lEntityID As Long, bIsICP As Boolean
Set cEntities = m_cMetadata.Entities
Set cTreeInfo = m_cMetadata.Entities
sEntity = comboEnt.Text
lEntityID = cTreeInfo.GetItemID(sEntity)
cEntities.IsICP lEntityID, bIsICP
If bIsICP = True Then
  …
End If