home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm7_1_1
- Caption = "Early World Series"
- ClientHeight = 1110
- ClientLeft = 1935
- ClientTop = 3330
- ClientWidth = 4710
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1110
- ScaleWidth = 4710
- Begin VB.PictureBox picWinner
- Height = 255
- Left = 120
- ScaleHeight = 195
- ScaleWidth = 4395
- TabIndex = 3
- Top = 720
- Width = 4455
- End
- Begin VB.CommandButton cmdWhoWon
- Caption = "Who Won That Series?"
- Height = 495
- Left = 2400
- TabIndex = 2
- Top = 120
- Width = 2175
- End
- Begin VB.TextBox txtNumber
- Height = 285
- Left = 1920
- TabIndex = 1
- Top = 240
- Width = 375
- End
- Begin VB.Label lblNumber
- Alignment = 1 'Right Justify
- Caption = "Number from 1 to 5:"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 1695
- End
- Attribute VB_Name = "frm7_1_1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- 'Create array for five strings
- Dim teamName(5) As String
- Private Sub cmdWhoWon_Click()
- Dim n As Integer
- 'Fill array with World Series Winners
- teamName(1) = "Red Sox"
- teamName(2) = "Giants"
- teamName(3) = "White Sox"
- teamName(4) = "Cubs"
- teamName(5) = "Cubs"
- 'Access array of five strings
- n = Val(txtNumber.Text)
- picWinner.Cls
- picWinner.Print "The "; teamName(n); " won World Series number"; n
- End Sub
-