WideStudio Programming Guide

| WideStudio Programming Guide | WideStudio Index Table of contents

> ## How to execute the event procedures of the instances

> You can execute the event procedures which the instances have with the method: WSCbase::execProcedure .

> Executing the event procedure | Description
> mpfc::WSCbase_execProcedure($proc_name) | Executing by name
> mpfc::WSCbase_execProcedure($event) | Executing by trigger

> ### How to execute the event procedures by the specified name

> You can execute the event procedures which the instances have by the specified name with the method: mpfc::WSCbase_execProcedure($proc_name).

>     use mpfc;

>     sub event_procedure {
>       my ($object) = @_;
>       # Execute the event procedures which name is "setup"
>       $object->execProcedure("setup");
>       return;
>     }
>     1;

> If exists the event procedures of the instance: $object, which name is same as the specified one, It executes it,but not , does nothing.

> ### How to execute the event procedures by the specified trigger

> You can execute the event procedures which the instances have by the specified trigger with the method: WSCbase::execProcedure(int).

>     use mpfc;

>     sub event_procedure {
>       my ($object) = @_;
>       # Execute the procedures which trigger is WSEV_ACTIVATE.
>       $object->execProcedure(mpfc::WSEV_ACTIVATE);
>       return;
>     }
>     1;

> If exists the event procedures of the instance: $object, which trigger is same as the specified one, It executes it,but not , does nothing.

Document Release 3.70 for WideStudio ver 3.70, Feb 2004

WideStudio documents index | Table of contents

Copyright(C) T. Hirabayashi, 2000-2004 | Last modified: Feb 25, 2004