The caption on the first button is set by the Window Load code. Clicking that button changes the text in the first edit box.

The second button changes its own text when clicked.

The fourth button calls a global function, defined in the global 'script' scope, rather than the 'MyForm' scope.


And here is a second form