It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

simple question string problems

Moderator: dafunkymunky

simple question string problems

Postby spil778 on Sun Feb 14, 2010 3:12 pm

whats wrong?
[code]
color = TextBox1.Text
Select Case color
Case Is = red<---------error
Case Is = blue<--------error
End Select
the code sould set color to the color you wirte on textbox1
and if you whirte red the color variable is gonna to rember red
got it?
spil778
 
Posts: 17
Joined: Sun Oct 04, 2009 7:59 pm

Re: simple question string problems

Postby kk8080 on Sat Apr 24, 2010 4:54 pm

[code]
color = TextBox1.Text
Select Case color
Case Is = vbred
Case Is = vbblue
End Select

Get some code here for reference
http://visualbasicnetcode.blogspot.com/ ... 0Basic%206
kk8080
 
Posts: 4
Joined: Sat Apr 24, 2010 4:12 pm


Who is online

Users browsing this forum: No registered users and 3 guests