Re: Getting user's choices from a menu
- Posted by Irv Mullins <irv at ELLIJAY.COM> Aug 12, 2000
- 445 views
On Sat, 12 Aug 2000, you wrote: > I'd appreciate some ideas about user-friendly and fool-proof ways of doing > this: > 1 present the user with a menu of choices (not mutually exclusive): > eg MENU OF USER CHOICES > A this > B that > C other > > 2 get user's choice(s): > eg ENTER THE LETTER (A,B,C) OF YOUR CHOICE(S): > > 3 suppose the choices are A and C. Is it preferable to read them as a > "unit", or as separate items? Should I insist on spaces between choices? If > so, what happens if the user enters AC instead of A C? What if the menu > choices were numerals (1,2,3) instead of letters? Would the code differ? > Would there be any different issues to take into account? The user-friendly way to do this would be with a series of checkboxes. There's a small (5k) file in the Euphoria archives which provides this and other simple controls for DOS or Linux - search for "simple text mode interface". Regards, Irv