Call a button click

hi people,
I am quite new around here and would just like to know the right syntax for a simple stuff : how to call the execution of the code I put in an [color=Red]On (Relase) {[color=Black] section, from another part of my code (i.e. I would like to consider the relase method of my button like a function, and call it from elsewhere…)

thanks
[/color][/color]