Author Topic: Variables for addEvent function?  (Read 547 times)



AddEvent function?

You mean this? http://forum.blockland.us/index.php?topic=40631.0
No, I need to package the fxDtsBrick::AddEvent function and I need the parameters.

Oh, look at the Checkpoint brick.


I'll teach you how I generally figure them out. I chose an arbitrary number of variables to give the function, say 5, and do the following:

Code: [Select]
package testFunction {
function fxDTSBrick::addEvent(%this, %one, %two, %three, %four, %five)
{
announce(%one SPC %one.getClassname());
announce(%two SPC %two.getClassname());
announce(%three SPC %three.getClassname());
announce(%four SPC %four.getClassname());
announce(%five SPC %five.getClassname());
parent::addEvent(%this, %one, %two, %three, %four, %five);
}
};

Now go add an event to some brick, and now you know the argument and the type of argument to use. Now it's just basic logic to figure out what they are. I'd do it for you, but now I don't have to cause you know how!