Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select Case question

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
On select case how can you get the name of the case you are in?


Select Case Str_value

Case "value"

Response.Write "You chose " & Case

...
End select

 
a little confused but tahts common for me lately.
so say we have this case select
select case num
case 1
Response.write("1")
case 2
Response.write("2")
case else
Response.write("3")
end select

you want to response.write "num" or simply what I did "1" etc..
[bomb]
I may not get it the 1st or 2nd time,
but how sweet that 15th time can be.
admin@onpntwebdesigns.com
 
.. or in the above example even Response.write num 'without the duoble quotes :p codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
You're not a complete programmer unless you know how to guess.
<insert witticism here>
 
ok, I was just seeing if there was &quot;universal&quot; way to get what case name, I though there was... but I was wrong I guess.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top