This topic is locked

Sharing Code Across Multiple Events (User Functions)

10/22/2007 2:36:28 AM
PHPRunner General questions
M
MikeB941 author

Hello:
PHPRUNNER 4.1 Build 320
I have code that I have to repeat several times in the add, delete and edit events. Is there a way to store this code ONCE somewhere (i.e. a user functions) and call it from the various events?
Thanks for your help!
Take Care... Mike.

Alexey admin 10/22/2007

Mike,
add your function to any event code.

Just omit closing } bracket

I.e.

...

your event code

...
}
function myfunc()

{

...

function code.....

M
MikeB941 author 11/10/2007

FANTASTIC ALEXEY!!! Thanks so much!
Take Care... Mike.