Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

CASE - checking for a range ?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2008, 08:54 PM
Senior Member
 
Join Date: Apr 2008
Location: Duesseldorf, Germany
Posts: 154
Default CASE - checking for a range ?

Hello,

my forum search did not present a solution, so 'm sorry if the answer is already somewhere in a post.

Can i make CASE checking for a range of numbers instead of a single number..?

Example:

Select Value

Case 0-33: do something

Case 34-70:do something else

End Select

This means: if value is somewhere in the range between 0 to 33, then...


Is this possible..? and if so, how is the correct syntax for this..?an
If not, how can i check for a range without tons of If..then statements..?



cheers

TWELVE
Reply With Quote
  #2 (permalink)  
Old 06-21-2008, 09:00 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Case checks for district values.
You can not use it for checking range of numbers.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking if registry key exists? N1c0_ds Questions (Windows Mobile) 3 10-21-2008 06:30 AM
Checking available fonts? MitchDabo Questions (Windows Mobile) 5 02-10-2008 11:43 PM
checking textbox string derez Questions (Windows Mobile) 13 10-25-2007 12:58 PM
About Select ... case JJM Questions (Windows Mobile) 2 05-22-2007 07:55 AM
Index was out of range error in version 5 HARRY Questions (Windows Mobile) 6 05-20-2007 09:16 AM


All times are GMT. The time now is 01:52 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0