# EsbOtlDeleteMemberAlias

Description

EsbOtlDeleteMemberAlias() deletes the default member alias for a specified member in a specified alias table.

Syntax

    EsbOtlDeleteMemberAlias (hOutline, hMember, pszAliasTable)

    ByVal hOutline      As Long
    ByVal hMember       As Long
    ByVal pszAliasTable As String

Parameters

hOutline | Outline context handle.
hMember | Handle of member to delete the alias from.
pszAliasTable | Alias table to delete the alias from. If this parameter is "", the default table is used.

Return Value

Returns 0 if successful; otherwise one of the following:

OTLAPI_ERR_NOALIAS

Example

    Declare Function EsbOtlDeleteMemberAlias Lib
    "ESBOTLW" (ByVal hOutline As Long, ByVal hMember As Long,
    ByVal pszAliasTable As String) As Long

    Sub ESB_OtlDeleteMemberAlias()
    Dim sts As Long
    Dim Object As ESB_OBJDEF_T
    Dim hOutline As Long
    Dim hMemberYear As Long

    Object.hCtx = hCtx
    Object.Type = ESB_OBJTYPE_OUTLINE
    Object.AppName = "Sample"
    Object.DbName = "Basic"
    Object.FileName = "Basic"

    sts = EsbOtlOpenOutline(hCtx, Object,
    ESB_YES, ESB_YES, hOutline)
    If sts = 0 Then
       sts = EsbOtlFindMember(hOutline, "Year", hMemberYear)
    End If

    If sts = 0 And hMemberYear <> 0 Then
       sts = EsbOtlDeleteMemberAlias(hOutline, hMemberYear, "")
    End If
    End Sub

See Also

EsbOtlGetMemberAlias()
EsbOtlSetMemberAlias()