Hi,
You will need to set up a folder where you can write and debug code without putting it in the screen load script and potentially screw Mach up while you mess around.
In your profile folder make a new folder OfflineButton. This is where you will put your code and work on it.
This was an instruction to make it easy for you to write/edit and debug the code. What you did instead was go direct to attaching the code to your button which
all but precludes you from testing it. You are trying to run before you can walk.
Once again: set up a folder in your profile that will contain the function. Put the function complete in the folder. Open the editor and browse to the folder and open
the contents in the editor. Run in single step mode, <f5> and <f11> repeating. At the last end statement press <shift f5> rather than crash the editor.
If you are going to program Mach you absolutely need to be able to use the editor and all its functions. I certainly wont be there to hold your hand! Put the code
in a folder and use the editor until you are 100% with it, no excuses!
Craig