Subject Re: [IBO] TIB_METADATA - etTrigger doesn't work
Author Helen Borrie
At 09:19 PM 3/08/2006, you wrote:
>Hi there,
>
>I want to extract only Triggers from a Database with a
>IB_Metadata-Component.
>
>I set the Entity etTrigger to true;
>
>lTrigger := TStringlist.Create;
>lTrigger.Clear;
>
>SIB_Trigger.ResetAll;
>SIB_Trigger.ExtractToStrings(lTrigger);
>
>Nothing will be exported.
>
>
>Then I tried this :
>
>SIB_TriggerFilterByEntity(Sender: TIB_CustomMetadata;
> AType: TIB_EntityType; AEntity: TIB_DDLEntity; var AInclude: Boolean);
>var Tmp : String;
>begin
> if AType in [etTrigger] then
> begin
> AInclude := true;
> end
> else
> begin
> AInclude := false;
> end;
>end;
>
>Also nothing will be exported.
>
>If I add etTables the export works?
>
>What is wrong there?

Nothing's wrong. Triggers don't exist outside the context of tables.

Helen