Select Case - case value

Post your requests and ideas on the future development of mikroBasic PRO for AVR.
Post Reply
Author
Message
allenandholmes
Posts: 32
Joined: 23 Dec 2009 22:48
Location: Melbourne, Australia

Select Case - case value

#1 Post by allenandholmes » 03 Feb 2010 03:13

The inability of the case value to be a sequential range of values greatly limits its use and forces the user to revert to an If statement instead. I have seen the implementation of a "range" for the value in other Basic compilers.
e.g. Select Case somevariable
case 0 to 100
...
case 101 to 567
...
case 568 to 999
...
case else
...
End Select

Instead of x TO y, a THRU z would do the same.
Regards,
Allen
Regards,
Allen

User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

#2 Post by anikolic » 04 Feb 2010 13:40

Hi,
Great suggestion, I will inform our developers of your idea and they will decide whether it's possible to implement this statement enhancement.

Best regards,
Aleksandar
Web Department Manager

Post Reply

Return to “mikroBasic PRO for AVR Wish List”