This topic is locked

Adding a function to an event

11/20/2007 12:12:45 PM
ASPRunnerPro General questions
Q
qqqqq author

Hi,
When I was using asprunner 4, I was able to put in functions that could be called by the event code but can't get that working for version 5.1. For example, I'd type in to the event window GUI :

Function BeforeEdit(dict, where)
...

x = DoWhatever()

...
End Function
Function DoWhatever(strInput)



...
End Function


and that would work fine. How can I get this working for 5.1? I can't type in code outside of the event function.

Thanks.

Sergey Kornilov admin 11/21/2007

I would suggest to put your own functions to include/header.asp file.