Murphy,
I got the answer. Next time iam charging
Simpler was the answer. It was stuck in a loop. I removed all the GOTO and loop logic and the end result is that variable \8 from LISTPICK will be updated correctly even after it finishes. No need to go around in a IF THEN GOTO loop.
!IF \81=0 THEN \9=FREE
!IF \81=2 THEN \9=BUSY
!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
The LISTPICK command still works great without the you keep checking and reissuing it over. The simplicity of LISTPICK is it will stay active on the screen forever, even if you go do other things, run other logic and come back hours later , LISTPICK seems as if its waiting for you running in the background ready to store your PICK to variable \8.
I also separated the commands on separated lines so it reads cleaner.
!IF \81=0 THEN \9=FREE
!IF \81=2 THEN \9=BUSY
!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
Jim C.


LinkBack URL
About LinkBacks





