I have this code for a button. Its under an Mcode.
The problem I am having is that clicking on EXIT MENU does not always exit the listsetup.. Its actually a 50/50 thing.. Sometimes it exits on the first click, sometimes I have to click it 2 or 3 times to get the menu to exit.
I tried entering the exit coding (red) in different locations but nothing seems to make a difference.
Any ideas?
!\8=0
!:UPDATE1
!IF \81=0 THEN \9=FREE
!IF \81=2 THEN \9=BUSY
!IF \8=EXIT MENU THEN EXIT
!LISTCLEAR: LISTSETUP 20;5625;2000;2000 :LISTADD STAGE 1 STATUS :LISTADD EXIT MENU :LISTADD TIME LEFT \31 :LISTADD STATUS \9 :LISTADD DWELL \151 :LISTADD DRIP \171 :LISTPICK \8
!IF \8=EXIT MENU THEN EXIT
!SLEEP .25
!IF \8=EXIT MENU THEN EXIT
!IF \8=0 THEN GOTO :UPDATE1
-----M1