# EssOtlDeleteMemberAlias

Description

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

Syntax

    ESS_FUNC_M EssOtlDeleteMemberAlias (hOutline, hMember, pszAliasTable);

ESS_HOUTLINE_T | hOutline
ESS_HMEMBER_T | hMember
ESS_STR_T | pszAliasTable

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 ESS_NULL, the default table is used.

Return Value

Returns 0 if successful; otherwise:

OTLAPI_ERR_NOALIAS

Example

    #include <essapi.h>
    #include <essotl.h>

    ESS_STS_T          sts = 0;
    ESS_HOUTLINE_T     hOutline;
    ESS_HMEMBER_T      hMemberJan;
    ESS_OBJDEF_T       Object;
    ESS_APPNAME_T      szAppName;
    ESS_DBNAME_T       szDbName;
    ESS_OBJNAME_T      szFileName;

    memset(&Object, '\0', sizeof(Object));
    Object.hCtx = hCtx;
    Object.ObjType = ESS_OBJTYPE_OUTLINE;
    strcpy(szAppName, "Sample");
    strcpy(szDbName, "Basic");
    strcpy(szFileName, "Basic");
    Object.AppName = szAppName;
    Object.DbName = szDbName;
    Object.FileName = szFileName;
    sts = EssOtlOpenOutline(hCtx, &Object, ESS_TRUE,
          ESS_TRUE, &hOutline);
    if (!sts)
    {
       sts = EssOtlFindMember(hOutline, "Jan",
             &hMemberJan);
    }
    if (!sts && hMemberJan)
    {
       sts = EssOtlDeleteMemberAlias(hOutline,
             hMemberJan, ESS_NULL);
    }

See Also

EssOtlGetMemberAlias()
EssOtlSetMemberAlias()