VERSION 4.00 Begin VB.Form Looper Appearance = 0 'Flat BackColor = &H00000080& BorderStyle = 3 'Fixed Dialog Caption = "Your Name's Super Looper" ClientHeight = 4155 ClientLeft = 1770 ClientTop = 1740 ClientWidth = 5160 BeginProperty Font name = "MS Sans Serif" charset = 0 weight = 700 size = 8.25 underline = 0 'False italic = 0 'False strikethrough = 0 'False EndProperty ForeColor = &H80000008& Height = 4560 Left = 1710 LinkTopic = "Form1" ScaleHeight = 4155 ScaleWidth = 5160 Top = 1395 Width = 5280 Begin VB.CommandButton CmdQuit Appearance = 0 'Flat BackColor = &H80000005& Caption = "Quit" Height = 375 Left = 2520 TabIndex = 10 Top = 3600 Width = 2055 End Begin VB.Frame Frame2 Appearance = 0 'Flat BackColor = &H00FFFF00& Caption = "For / Next " ForeColor = &H80000008& Height = 2535 Left = 360 TabIndex = 2 Top = 1440 Width = 1935 Begin VB.CommandButton CmdCount Appearance = 0 'Flat BackColor = &H80000005& Caption = "Count" Height = 615 Left = 120 TabIndex = 5 Top = 1200 Width = 735 End Begin VB.CommandButton CmdClear Appearance = 0 'Flat BackColor = &H80000005& Caption = "Clear" Height = 600 Left = 120 TabIndex = 4 Top = 360 Width = 735 End Begin VB.PictureBox PicForNext Appearance = 0 'Flat BackColor = &H80000005& ForeColor = &H80000008& Height = 2055 Left = 1035 ScaleHeight = 2025 ScaleWidth = 570 TabIndex = 3 Top = 360 Width = 600 End End Begin VB.Frame Frame1 Appearance = 0 'Flat BackColor = &H0000FFFF& Caption = "Select Case" ForeColor = &H80000008& Height = 1215 Left = 360 TabIndex = 0 Top = 120 Width = 1875 Begin VB.HScrollBar ScrSelCase Height = 375 Left = 165 Max = 2 TabIndex = 1 Top = 360 Width = 1530 End Begin VB.Label LblSelCase BackColor = &H00FFFFFF& Caption = "Low" Height = 255 Left = 240 TabIndex = 11 Top = 840 Width = 1455 End End Begin VB.Label LblUntilTop Appearance = 0 'Flat BackColor = &H00FF0000& BorderStyle = 1 'Fixed Single Caption = "Do Until Ans = 5 Ans = InputBox Loop " ForeColor = &H80000008& Height = 735 Left = 2760 TabIndex = 6 Top = 2640 Width = 1815 End Begin VB.Label LblWhileTop Appearance = 0 'Flat BackColor = &H00FF0000& BorderStyle = 1 'Fixed Single Caption = "Do While Ans = 5 Ans = InputBox Loop " ForeColor = &H80000008& Height = 735 Left = 2760 TabIndex = 7 Top = 1800 Width = 1815 End Begin VB.Label LblUntilBot Appearance = 0 'Flat BackColor = &H00FF0000& BorderStyle = 1 'Fixed Single Caption = "Do Ans = InputBox Loop Until Ans = 5" ForeColor = &H80000008& Height = 735 Left = 2760 TabIndex = 8 Top = 960 Width = 1815 End Begin VB.Label LblWhileBot Appearance = 0 'Flat BackColor = &H00FF0000& BorderStyle = 1 'Fixed Single Caption = "Do Ans = InputBox Loop While Ans = 5" ForeColor = &H80000008& Height = 735 Left = 2760 TabIndex = 9 Top = 120 Width = 1815 End End Attribute VB_Name = "Looper" Attribute VB_Creatable = False Attribute VB_Exposed = False Option Explicit Private Sub CmdClear_Click() 'Use the CLS method to clear the PicForNext picture box End Sub Private Sub CmdCount_Click() 'Dimension a temporary counting variable I 'Create a for - next loop that counts to 10 'Inside the loop, use the Print method to print 'the value of I to the PicForNext Picture box. End Sub Private Sub LblUntilBot_Click() 'Add an UNTIL condition to the BOTTOM On Error Resume Next 'This line handles errors. Dim Ans As Integer Do Ans = val(InputBox("What is 3 + 2?")) Loop End Sub Private Sub LblUntilTop_Click() 'Add an UNTIL condition to the TOP On Error Resume Next 'This line handles errors. Dim Ans As Integer Do Ans = val(InputBox("What is 3 + 2?")) Loop End Sub Private Sub LblWhileBot_Click() 'Add a WHILE condition to the BOTTOM On Error Resume Next 'This line handles errors. Dim Ans As Integer Do Ans = val(InputBox("What is 3 + 2?")) Loop End Sub Private Sub LblWhileTop_Click() 'Add a WHILE condition to the TOP On Error Resume Next 'This line handles errors. Dim Ans As Integer Do Ans = val(InputBox("What is 3 + 2?")) Loop End Sub Private Sub ScrSelCase_Change() 'Make a select - case structure that puts 'Low, Medium, or High in LblSelCase depending on 'value of ScrSelCase End Sub