IProcedure.DropProcedure

Syntax

DropProcedure([Options: Integer = 0]);

Parameters

Options. Reserved parameter.

Description

The DropProcedure method removes the procedure, referenced by given repository procedure, from database on server.

Example

Executing the example requires that the repository contains a procedure with the Proc_1 identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Proc: IProcedure;
Begin
    MB := MetabaseClass.Active;
    Proc := MB.ItemById("Proc_1").Bind As IProcedure;
    Proc.DropProcedure;
End Sub UserProc;

After executing the example, procedure, referenced by the repository New_Proc_1 procedure, is removed from a database on server.

See also:

IProcedure