Description

Deletes native tables and their dictionaries.

Syntax

Delete_Table(tablename, lockflag, status)

Parameters

The Delete_Table subroutine has the following parameters.

ParameterDescription
tablenameThe table or tables to delete at the specified location.

If a tablename is specified it will delete both the table and its dictionary. To delete just a dictionary portion, preface the table name with "DICT. ".

lockflagSet to true, in order to lock the table prior to deletion.
statusIf true (1) on return, then the table was deleted successfully. Note that while this does indicate success or failure, the Get_Status() is the preferred method for obtaining status information.

To delete a table using the tool set, use the Database Manager.

See also

Detach_TableCreate_TableCopy_Table

Example

declare subroutine Delete_Table
tablename = "MY_TABLE"
lockflag = 1
status = ""
Delete_Table(tablename,lockflag,status)
  • No labels