Data source types: Data source types: Essbase, Planning, Financial Management, Hyperion Enterprise
HypDisconnectEx disconnects the connection with the the connection (friendly) name passed in the argument. The connection to be disconnected need not be associated as in HypDisconnect.
HypDisconnectEx (vtConnFriendlyName)
ByVal vtConnFriendlyName as Variant
vtConnFriendlyName: The friendly connection name
Returns 0 if successful; otherwise, returns the appropriate error code.
Declare Function HypDisconnectEx Lib "HsAddin" (ByVal vtConnFriendlyName As Variant) As Long
Sub SubDisconnectExTest()
Dim lRet As Long
lRet = HypDisconnectEx("My Sample")
End Sub