Link to home
Start Free TrialLog in
Avatar of prateekkumar
prateekkumar

asked on

How to write a common functions?

Hi friends, this is in continution to the questions I was asking. Actually, I am performing some function on the outgoing mails for individual users. For this I am writing some scripts at the QuerySave event of Memo, Reply, ReplyWithHistory, PersonalStationary and wForward forms(means wherever it is possible to send a mail).
   Now if I have to make some changes in it then I have to change the scripts in all five forms. Can I make some sort of functions which can be called in all five forms and if I have to make any changes then I have to change at a single function which is called in all five forms? Please tell me in detail as I am not a expert in Lotus Notes?

ps: Please don't suggest to not to use this method of writing lotus script in all five forms as I have already implemented it.
ASKER CERTIFIED SOLUTION
Avatar of Arunkumar
Arunkumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AndrewJayPollack
AndrewJayPollack

Arun is dead spot on here.  GO script libraries.

Even better, put the script library in a template on your server, and let the mail files you have inherit the changes each each night or any time you run the "design" task on the server.

Change once, run design, and its rolled out everywhere.
Avatar of prateekkumar

ASKER

Thanks Arun, it's running perfectly.