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.

About Select ... case

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2007, 03:28 PM
JJM JJM is offline
Senior Member
 
Join Date: Apr 2007
Location: France
Posts: 123
Default About Select ... case

Hi,

I would like to use:
Select value
case 30 to 50
cl=cRed
case 51 to 75
cl=cYellow
....
End select

I think it's not good.
has Somebody the solution?

Bye

JJ M
Reply With Quote
  #2 (permalink)  
Old 05-21-2007, 03:43 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

'to' is not supported in a Select Case.
You can only use:
Case 30,31,32...
Which is not useful here.
The simplest solution is to use an If statement instead.
Reply With Quote
  #3 (permalink)  
Old 05-22-2007, 07:55 AM
JJM JJM is offline
Senior Member
 
Join Date: Apr 2007
Location: France
Posts: 123
Default

Thank you Erel.

JJ M
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
Objects are always lower case agraham Bug Reports 0 11-02-2008 10:27 AM
select case syntax tremara1 Basic4ppc Wishlist 4 10-31-2008 12:12 PM
Case and AutoComplete control names agraham Beta Versions 1 09-18-2008 06:06 PM
CASE - checking for a range ? TWELVE Questions (Windows Mobile) 1 06-21-2008 09:00 PM
How to select a directoty sloopa Questions (Windows Mobile) 7 07-02-2007 04:06 PM


All times are GMT. The time now is 12:58 AM.


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