More flexible Switch-Case statement

Feature requests for future versions of Hollywood can be voiced here
Post Reply
jalih
Posts: 281
Joined: Fri Jun 18, 2010 8:08 pm
Location: Finland

More flexible Switch-Case statement

Post by jalih »

It would be nice, if something like the following would work:

Code: Select all

c = ReadChr(1)

Switch c
	Case 'a' To 'z' Or  'A' To 'Z':
		DebugPrint("Got character")
	Case '0' To '9':
		DebugPrint("Got number")
	Default:
		DebugPrint("Error: impossible character", Chr(c))
		End
EndSwitch
User avatar
airsoftsoftwair
Posts: 5862
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: More flexible Switch-Case statement

Post by airsoftsoftwair »

That's not likely to come because it is a lot of work :)
Post Reply