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

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

Basic4ppc Wishlist Missing any feature?

select case syntax

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-27-2008, 10:24 AM
tremara1's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Ballarat Victoria Australia
Posts: 161
Default select case syntax

I would like to use a select case to to find a value in several ranges ie
from 0 to 5 from 6 to 12 and so on. I have tried many combinations but I am not sure of the syntax I need in each case. I know this is going to be simple but I am really stumped...Thanks
Reply With Quote
  #2 (permalink)  
Old 10-27-2008, 10:58 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

From what I know, the only way is this one:
Code:
Select var
Case 0,1,2,3,4,5
Case 6,7,8,9,10
End Select
In Visual Basic it is possible with
Code:
Select Case var
Case 0 To 5
Case 6 To 10
End Select
Erel, couldn't this be an intersting feature ?

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #3 (permalink)  
Old 10-27-2008, 08:45 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Quote:
Erel, couldn't this be an intersting feature ?
Yes. Maybe it will be added in a future version.
Reply With Quote
  #4 (permalink)  
Old 10-27-2008, 09:38 PM
tremara1's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Ballarat Victoria Australia
Posts: 161
Default thanks

Thanks for your help its great to be part of a team that helps each other...
Reply With Quote
  #5 (permalink)  
Old 10-31-2008, 12:12 PM
Basic4ppc Expert
 
Join Date: May 2008
Location: Italy
Posts: 541
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I also would like to see this implemented.

Rgds,
moster67

Quote:
Originally Posted by klaus View Post
In Visual Basic it is possible with
Code:
Select Case var
Case 0 To 5
Case 6 To 10
End Select
Erel, couldn't this be an intersting feature ?
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
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
SQLLite staement syntax aureolevoyager Questions (Windows Mobile) 1 04-02-2008 11:14 PM
About Select ... case JJM Questions (Windows Mobile) 2 05-22-2007 07:55 AM


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


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