Re: functions as parameters

From: Michael Myers <mjmyers_at_nospam.blazenet.net>
Date: Wed, 31 Mar 1999 21:57:53 -0500
Message-ID: <3702E0B1.18E9952A_at_nospam.blazenet.net>


> I would like to pass the name of a function as a parameter to a procedure.
> Then within the procedure I would like to execute the function that is passed
> in. For example:
>
> Draw_Circle('Get_Circle_Points') - call
> - Get_Circle_Points is the name of a function
>
> From within the Procedure Draw_Circle I would like to execute
> Get_Circle_Points - any idea how to go about doing this? (I know I could pass
> a flagged and use an if statement but I would like a cleaner solution)

I never found a way to do this that I really liked. However, it can be done with user-defined triggers. You can create a trigger at some level with the name 'get_circle_points' and call it with EXECUTE_TRIGGER. It's a little hokey, but it seems to work. Received on Thu Apr 01 1999 - 04:57:53 CEST

Original text of this message