[Visual Basic] Case Statements

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,704
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 11, 2008

CLICK TO WATCH IN HIGH DEFINITION: http://www.youtube.com/watch?v=yOaDlcvm5Zw&fmt=18
In this tutorial I will show you how to use case statements and select case. You can use this for many different things, hope you enjoy. If you have any questions then PM me.
CODE:
Dim Tutorial As Integer
Tutorial = Int(Rnd() * 10)
Select Case Tutorial
Case 1
Text1.Text = "This is case 1"
Case 2
Text1.Text = "This is case 2"
Case 3
Text1.Text = "This is case 3"
Case 4
Text1.Text = "This is case 4"
Case 5
Text1.Text = "This is case 5"
Case 6
Text1.Text = "This is case 6"
Case 7
Text1.Text = "This is case 7"
Case 8
Text1.Text = "This is case 8"
Case 9
Text1.Text = "This is case 9"
Case 10
Text1.Text = "This is case 10"
End Select

Category:

Howto & Style

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:
see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • The music ruins this tutorial, too bad.

  • does any one know were they learn the codes an stuff ?

  • Oh man!!!!!!Thx a lot!!! U are the best:P..Good Luck!

  • Thank you so much i've been searching google for this for a bit it really helped add me as your friend

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more