DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE
var method = form.newFormMethod('function original() { application.output("Original function."); }'); application.output('original method name: ' + method.getName()); application.output('original method code: ' + method.code); method.code = 'function changed() { application.output("This is another function."); }'; method.showInMenu = false; var button = form.newButton('Click me!', 10, 10, 100, 30, method);