Post Reply 
Change in CHOOSE behaviour between 8151 and 11586 (Android) (KNOWN)
11-11-2017, 12:14 AM
Post: #3
RE: Change in CHOOSE behaviour between 8151 and 11586 (Android) (KNOWN)
Your algorithms are entangled, the general way to use CHOOSE would be something like that for the EXPORT Z_LIGHTS()

Code:
EXPORT Z_LIGHTS()
 BEGIN
  LOCAL CHS; //,OK;♣

  //REPEAT ♣
  // OK:=CHOOSE(CHS,CRID,CHOICES); ♣
  WHILE CHOOSE(CHS,CRID,CHOICES) DO

   //IF OK THEN //WORKAROUND ♣
    CASE  
     IF CHS==1 THEN HELP   END
     IF CHS==2 THEN INFO   END
     IF CHS==3 THEN LIGHTSTEADY END
     IF CHS==4 THEN LIGHTCOLR   END
     IF CHS==5 THEN LIGHTBLINK  END
     IF CHS==6 THEN LIGHT_SOS   END
     IF CHS==7 THEN ASK_WPM     END
     //DEFAULT ♣
    END;//CASE
   //END;//IF ♣

  //UNTIL OK==0;//WORKAROUND ♣
  END; //WHILE

 END;

Implement it like this in the other selection loops

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Change in CHOOSE behaviour between 8151 and 11586 (Android) (KNOWN) - Carlos295pz - 11-11-2017 12:14 AM



User(s) browsing this thread: 1 Guest(s)