Starting and stopping a loop via a button

You seem to have a stray ) on line 35 of the code in Reply #5 which is confusing the compiler

...R