ITableChecks.Remove

Syntax

Remove(Check: Integer): Boolean;

Parameters

Check is constraint number.

Description

The Remove method removes a table constraint. Constraint number is passed by the Check parameter.

Example

Sub Main;

Var

MB: IMetabase;

Object: IMetabaseObject;

Table: ITable;

Checks: ITableChecks;

s: String;

Begin

MB:=MetabaseClass.Active;

Object:=MB.ItemById("TABLE_1").Edit;

Table:=Object As ITable;

Checks:=Table.Checks;

If Checks.Remove(0) Then

s:="Removed";

Else

s:="Don't Removed";

End If;

Object.Save;

End Sub Main;

After executing the example, the "s" variable contains Removed, if removal of the first table constraint was successful. The table identifier is Table_1.

See also:

ITableChecks