VERSION 5.00 Begin VB.Form Form1 Caption = "Form1" ClientHeight = 5076 ClientLeft = 48 ClientTop = 348 ClientWidth = 7164 LinkTopic = "Form1" ScaleHeight = 5076 ScaleWidth = 7164 StartUpPosition = 3 'Windows Default Begin VB.CommandButton cmdClearPic Caption = "Clear Picture Box" Height = 1092 Left = 4680 TabIndex = 4 Top = 1800 Width = 1452 End Begin VB.CommandButton cmdClearText Caption = "Clear Text Box" Height = 972 Left = 4680 TabIndex = 3 Top = 480 Width = 1452 End Begin VB.TextBox txtBox Height = 852 Left = 1080 TabIndex = 2 Top = 480 Width = 3372 End Begin VB.PictureBox picDisplayData Height = 1212 Left = 1080 ScaleHeight = 1164 ScaleWidth = 3324 TabIndex = 1 Top = 1680 Width = 3372 End Begin VB.CommandButton cmdStartProgram Caption = "Display College Information" Height = 1092 Left = 1200 TabIndex = 0 Top = 3360 Width = 3012 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub cmdClearPic_Click() picDisplayData.Cls End Sub Private Sub cmdClearText_Click() txtBox.Text = "" End Sub Private Sub cmdStartProgram_Click() Dim collegeName(1 To 7) As String, state(1 To 7) As String Dim YearFound(1 To 7) As Integer, Found As Boolean Dim college As Integer, Inputcollege As String Open "W:\COLLEGES.TXT" For Input As #1 For college = 1 To 7 Input #1, collegeName(college), state(college), YearFound(college) Next college Close #1 Inputcollege = txtBox.Text For college = 1 To 7 If UCase(Inputcollege) = UCase(collegeName(college)) Then Found = True Exit For End If Next college If Found = True Then picDisplayData.Print "College: "; collegeName(college) picDisplayData.Print "State: "; state(college) picDisplayData.Print "Year Founded: "; YearFound(college) Else MsgBox "The name: " & Inputcollege & " is not in the list", vbInformation, "Match not found" End If End Sub