ApiTableRemove - cDbUpdateFunctionLibrary

Removes/deletes a table.


Type: Function


Parameters: Handle hTable

Parameter

Description

hTable

A file handle to the table name. Same as the Filelist.cfg slot number.


Syntax


Function ApiTableRemove hTable Returns Boolean

Call:

Get ApiTableRemove SysTable.File_Number to bOK



Description

Use it to remove a whole table including data. The file handle is the same as the file number in Filelist.cfg.

Note: It will remove the table and all its data and remove it from filelist.cfg as well as it delete it from disk.


Example


Procedure OnUpdate

    Boolean bOK

   

    Get ApiTableRemove MyOldTable.File_Number


End_Procedure