# EsbOtlGetDTSMemberAlias

Description

EsbOtlGetDTSMemberAlias() gets an alias name for a DTS member.

Syntax

    EsbOtlGetDTSMemberAlias (hOutline, pszDTSMember, pszAliasTable, ppszAlias)

    ByVal hOutline      As Long
    ByVal pszDTSMember  As String
    ByVal pszAliasTable As String
    ByVal pszAlias      As String

Parameters

hOutline | Essbase outline handle returned from the EsbOtlOpenOutlineQuery call.
pszDTSMember | Name of the DTS member which provides the alias.
pzsAliasTable | Name of the alias table which provides the alias. If NULL, the default alias table is used.
ppszAlias | Pointer to a pointer to a C string containing the alias name for the DTS member.

Return Value

If successful the return value is zero. Otherwise, one of the following is returned:

OTLAPI_ERR_DTSMBRNOTDEFINED
OTLAPI_BAD_ALIASTABLE

Notes

The fixed length of ESB_ALIASNAMELEN sets the string length for a variable alias.

Example

    Public Sub ESB_OtlGetDTSMemberAlias()

       Dim DTSMember As String * ESB_MBRNAMELEN
       Dim AliasTable As String * ESB_ALIASNAMELEN
       Dim Alias As String * ESB_ALIASNAMELEN

       DTSMember = "H-T-D"
       AliasTable = "Default"

       sts = EsbOtlGetDTSMemberAlias(hOutline, DTSMember, _
                                     AliasTable, Alias)

       MsgBox Alias

    End Sub

See Also

EsbOtlDeleteDTSMemberAlias()
EsbOtlEnableDTSMember()
EsbOtlGetEnabledDTSMembers()
EsbOtlSetDTSMemberAlias()