Post Reply 
Multiple Choice for CHOOSE command
08-09-2018, 08:13 AM (This post was last modified: 08-09-2018 08:42 AM by Carlos295pz.)
Post: #2
RE: Multiple Choice for CHOOSE command
(08-09-2018 07:07 AM)Giancarlo Wrote:  For example if the program asks for ‘ice cream preferred flavors’ the user could select multiple flavors like ‘vanilla’, ‘strawberry’ and ‘coffee’.

This system (CHOOSE command nested into a REPEAT...UNTIL loop) work until you don’t have to exit from the loop. Which condition? I don’t know how to exit from the test because there is no way to understand when the user stops the selection of items...

It can be achieved like this:
  LOCAL List={"vanilla","strawberry","coffee","coconut","chocolate"};
  LOCAL X,SList={};
  WHILE CHOOSE(X,"Chosen ("+SIZE(SList)+")",List) DO

[Esc] on CHOOSE return a 0

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: Multiple Choice for CHOOSE command - Carlos295pz - 08-09-2018 08:13 AM

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