# EsbOtlDeleteAliasTable

Description

EsbOtlDeleteAliasTable() deletes the specified alias table from the outline, clearing all of its entries.

Syntax

    EsbOtlDeleteAliasTable (hOutline, pszAliasTable)

    ByVal hOutline      As Long
    ByVal pszAliasTable As String

Parameters

hOutline | Outline context handle.
pszAliasTable | Name of alias table to delete.

Return Value

Returns 0 if successful; otherwise one of the following:

OTLAPI_BAD_ALIASTABLE
OTLAPI_ERR_DELETEDEFALIAS

Notes

- You cannot delete the default alias table.

Example

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

    Sub ESB_OtlDeleteAliasTable()
    Dim sts As Long
    Dim Object As ESB_OBJDEF_T
    Dim hOutline 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 = EsbOtlDeleteAliasTable(hOutline,
        "Alias Table 1")
    End If
    End Sub

See Also

EsbOtlCreateAliasTable()
EsbOtlCopyAliasTable()
EsbOtlRenameAliasTable()
EsbOtlClearAliasTable()