Re: Case expressionlist-n
- From: "Robert Morley" <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Jul 2007 12:54:30 -0400
Yeah, that's the one I've got as well, which for me is from October 2001
(note, you guys have said 2000, so maybe one of you has 2000, but the other
actually has 2001?).
Rob
"Pop`" <nodoby@xxxxxxxxxxxxxxxxxxx> wrote in message
news:lDJri.1483$vW.271@xxxxxxxxxxx
Inline & Bottom:
Steve Gerrard wrote:
"Pop`" <nodoby@xxxxxxxxxxxxxxxxxxx> wrote in message
news:DIFri.7689$8u1.174@xxxxxxxxxxx
Top posted in consideration of post length
Huh, are you saying I should already have that same info? I don't.
What version of MSDN is that from? It contains magnitudes more
information than I have, or can find, for that matter. I'm using
MSDN Oct 2000 with VB6 SP6. From the look of that, it might be
worth trying to find an older version. I've heard there was an early
2000 version too but I've never seen it referenced that I'm aware of.
Actually, I have Oct 2000 as well.
I tried finding your version, and did. It is in the Visual Basic
Scripting Edition help. Mine is in the Visual Basic for Applications
help. As you have probably noticed, MSDN has the help for all the
programming languages jammed together into it.
How are you using Help? If found your version by opening Help
directly, and typing Select in the Index view. Both "Select Case" and
"Select Case statement" took me to that VB Scripting version.
Interesting; Using Index here the vbscripting goes either to the page I
showed previously, or a much more detailed description, but not the one
you quoted either <g>! Ggggaaaaahhhhh! <G>
I almost always go to help by typing the word of interest in a VB
code window (i.e. select), then highlighting it, then clicking F1. In
many cases, this will take you directly to the VBA help for that
word. Although the scripting help is not way off, it is better to get
the real thing.
Now, that last got me a lot better information. Thank you, I'll switch my
methods immediately; that's a good tip and I did do it a bit "back when"
but forgot about it. Time to retrain a habit!
Funny enough, it still doesn't take me to what you showed quoted though.
Rather than paste the whole thing, I'll just paste the sample ending of
it. It IS mostly the equivalent of what you posted, but with IS staement
instead of mentioning TO and whatever else it was.
-----------
... "
Case 1 To 4, 7 To 9, 11, 13, Is > MaxNumber
Note The Is comparison operator is not the same as the Is keyword used
in the Select Case statement.
You also can specify ranges and multiple expressions for character
strings. In the following example, Case matches strings that are exactly
equal to everything, strings that fall between nuts and soup in alphabetic
order, and the current value of TestItem:
Case "everything", "nuts" To "soup", TestItem
Select Case statements can be nested. Each nested Select Case statement
must have a matching End Select statement.
-------------------
Dunno about you, but this had gotten boring to me so I won't put you thru
further agony on it other than to say thanks for a good tip that's already
worked out well for me.
The Help wouldn't be quite so bad if they allowed one to more accurately
pick & choose the subjects for it. The first time I switched it from the
All to only VB (made sense to me), I couldn't figure out where most of the
previously applicable info went to!
Oh well, even as "old" as VB6 is, I still see a lot of forward thinking
in it, and usable features I've never seen anywhere else outside of MS.
They did some things right; if only they could learn to FINISH what they
start now <g>.
Thanks again,
Pop`
.
- Follow-Ups:
- Re: Case expressionlist-n
- From: Pop`
- Re: Case expressionlist-n
- References:
- Case expressionlist-n
- From: Pop`
- Re: Case expressionlist-n
- From: Robert Morley
- Re: Case expressionlist-n
- From: Pop`
- Re: Case expressionlist-n
- From: Steve Gerrard
- Re: Case expressionlist-n
- From: Pop`
- Re: Case expressionlist-n
- From: Steve Gerrard
- Re: Case expressionlist-n
- From: Pop`
- Case expressionlist-n
- Prev by Date: List Box Highlighting
- Next by Date: Re: List Box Highlighting
- Previous by thread: Re: Case expressionlist-n
- Next by thread: Re: Case expressionlist-n
- Index(es):
Relevant Pages
|