I have a Combo1 with 254 items in it. I need to divide it into 2 case
statements:
Case 0 thru 246
and
Case 247 thru 253
Mastering Visual Basic .Net, Page 139, very bottom of the page states:
Same case statements can be followed by multiple values, which are
separated by commas.
Surely there is a shortcut way of expressing the 247 values in Case 0
above.
How do I show the case values without listing all 247 of them?
Thanks in advance, Jim. 6 3111
"Jim Richards" <ji*********@satx.rr.comwrote in message
news:47***********************@roadrunner.com...
>I have a Combo1 with 254 items in it. I need to divide it into 2 case statements:
Case 0 thru 246
and
Case 247 thru 253
Mastering Visual Basic .Net, Page 139, very bottom of the page states:
Same case statements can be followed by multiple values, which are
separated by commas.
Surely there is a shortcut way of expressing the 247 values in Case 0
above.
How do I show the case values without listing all 247 of them?
Thanks in advance, Jim.
Case 0 to 246 and case 247 to 253 http://msdn2.microsoft.com/en-us/lib...4y(VS.71).aspx
Hope this helps
LS
Why not do smoething like this
intValue = FunctionCall( parms )
Select Case intResult
Case Is >= 75 AND Case Is <90
'bla
Case Is < 65
'bla
Case Else
'bla
End Select
Can you psuedocode something that your looking for?
Miro
Jim Richards wrote:
I have a Combo1 with 254 items in it. I need to divide it into 2 case
statements:
Case 0 thru 246
and
Case 247 thru 253
Mastering Visual Basic .Net, Page 139, very bottom of the page states:
Same case statements can be followed by multiple values, which are
separated by commas.
Surely there is a shortcut way of expressing the 247 values in Case 0
above.
How do I show the case values without listing all 247 of them?
Thanks in advance, Jim.
On Oct 22, 12:08 pm, "Lloyd Sheen" <a...@b.cwrote:
"Jim Richards" <jimricha...@satx.rr.comwrote in message
news:47***********************@roadrunner.com...
I have a Combo1 with 254 items in it. I need to divide it into 2 case
statements:
Case 0 thru 246
and
Case 247 thru 253
Mastering Visual Basic .Net, Page 139, very bottom of the page states:
Same case statements can be followed by multiple values, which are
separated by commas.
Surely there is a shortcut way of expressing the 247 values in Case 0
above.
How do I show the case values without listing all 247 of them?
Thanks in advance, Jim.
Case 0 to 246 and case 247 to 253http://msdn2.microsoft.com/en-us/library/cy37t14y(VS.71).aspx
Hope this helps
LS
Thought you could do greater than less than in case statements too.
Case Is < 247 ?
"Jim Richards" wrote:
I have a Combo1 with 254 items in it. I need to divide it into 2 case
statements:
Case 0 thru 246
and
Case 247 thru 253
Mastering Visual Basic .Net, Page 139, very bottom of the page states:
Same case statements can be followed by multiple values, which are
separated by commas.
Surely there is a shortcut way of expressing the 247 values in Case 0
above.
How do I show the case values without listing all 247 of them?
Thanks in advance, Jim.
Please highlight the 'Select' statement and press F1.
<ge*******@otc.eduschrieb:
Thought you could do greater than less than in case statements too.
Case Is < 247 ?
ACK, but note that -100 will also pass in this case.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Jim Richards schreef:
I have a Combo1 with 254 items in it. I need to divide it into 2 case
statements:
Case 0 thru 246
and
Case 247 thru 253
Mastering Visual Basic .Net, Page 139, very bottom of the page states:
Same case statements can be followed by multiple values, which are
separated by commas.
Surely there is a shortcut way of expressing the 247 values in Case 0
above.
How do I show the case values without listing all 247 of them?
Thanks in advance, Jim.
In this case I would just use an if.
--
Rinze van Huizen
C-Services Holland b.v This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mohammed Mazid |
last post by:
Hi folks!
Can anyone please help me with this?
I am developing a Quiz program but I am stuck with "multiple answers".
Basically I need some sort of code that would select multiple answers...
|
by: Newbie |
last post by:
Dear friends,
I am having a hard time understanding how to use a SELECT CASE in ASP. I
have used it in VB but never in ASP scripting.
Scenerio:
I have 2 textboxes on a form that I have to...
|
by: Kevin |
last post by:
Hi, I am getting a syntax error
Microsoft VBScript compilation error '800a03ea'
Syntax error
On the code below. The error references the "End Select" line
Can anyone help me with what I am...
|
by: Penny |
last post by:
Hi all,
My browser throws this Select Case block back at me pointing out a syntax
error on the line: 'Case < 251', between the word 'Case' and the '<' symbol.
***************************
...
|
by: MLH |
last post by:
Suppose the following...
Dim A as Date
A=#7/24/2005#
I wish to compare value of A against 2 other values:
1) 8/1/2005
2) 9/1/2005
Which is better and why...
First:
|
by: Lauren Quantrell |
last post by:
Is there any speed/resource advantage/disadvantage in using
Select Case x
Case 1
Case 2
etc. many more cases...
End Select
VS.
|
by: Rob Meade |
last post by:
Ok - I *think* this is only different in .net 2.0 - as I've not had any
problems in the past, but then maybe I've not tried it...
I have a value being read from an xml file where the value maybe...
|
by: |
last post by:
Hello,
This is gonna sound real daft, but how do I test a Select Case statement for
variants of a theme?
Here's a snippet of my code...
Select Case sUsr
Case "Guest", "TsInternetUser",...
|
by: microsoft.public.dotnet.languages.vb |
last post by:
Hi All,
I wanted to know whether this is possible to use multiple variables to
use in the select case statement such as follows:
select case dWarrExpDateMonth, dRetailDateMonth
case...
|
by: tjc0ol |
last post by:
Hi guys,
I'm a newbie in php and I got error in my index.php which is:
1054 - Unknown column 'p.products_id' in 'on clause'
select p.products_image, pd.products_name, p.products_id,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |