Executing code behind a button

Hello,

Maybe a strange request, but is there a way to execute the code behind a button on a form?

I want to do that with lotusscript.

Any hints.

SC

Subject: Executing code behind a button

If I am understanding you correctly, you want to programmatically call the click event of a button on a form? That depends on what you are doing. Perhaps a simpler way of doing this would be to make sure that the code in question resides in a script library; that way whether it’s initiated from the button being clicked or from somewhere else in your code, there’s no difference. This depends on whether you are trying to do UI stuff in the back end… can you provide more detail as to what you are trying to do?

Subject: RE: Executing code behind a button

Thanks you for your reaction.

About code moving into a lib, it is not a option here.

I Just need to activate a buttons code. If I have to execute the code by calling the click event, thats ok for me.

Some one? Also does someone know how to get a copy of the code from behind a button?

SC