ApiTableCreateAlias - cDbUpdateFunctionLibrary

To create an alias table.


Type: Function


Parameters: String sFileName String sDisplayName String sAliasName Integer iFilelistSlot

Parameter

Description

sFileName

This is the physical file name you are creating an alias for (the root name). The file/table name must already exist.

sDisplay

The display name of the table

sAliasName

This will be the name you will use to reference the alias table in your application's source code (logical name)

iFilelistSlot

Assigns a table number for the table you are adding to Filelist.cfg.


Syntax


Function ApiTableCreateAlias String sFileName String sDisplay String sAliasName Integer iFilelistSlot

Call:

Get ApiTableCreateAlias "Customer" "Customer Alias" "CustomerAlias 138 to bOK



Description

Use it to create a new alias table in filelist.cfg.


Example


Procedure OnUpdate

    Boolean bOK

   

    Get ApiTableCreateAlias "MyTable" "MyTable Alias" "MyTableAlias" 345 to bOK


End_Procedure