home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm5_3_3
- Caption = "One, Two, Buckle My Shoe"
- ClientHeight = 1725
- ClientLeft = 1740
- ClientTop = 1725
- ClientWidth = 3480
- 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 = 1725
- ScaleWidth = 3480
- Begin VB.PictureBox picPhrase
- Height = 255
- Left = 840
- ScaleHeight = 195
- ScaleWidth = 1755
- TabIndex = 3
- Top = 1320
- Width = 1815
- End
- Begin VB.TextBox txtNumber
- Height = 375
- Left = 2280
- TabIndex = 1
- Top = 240
- Width = 375
- End
- Begin VB.CommandButton cmdInterpret
- Caption = "Interpret Number"
- Height = 495
- Left = 840
- TabIndex = 2
- Top = 720
- Width = 1815
- End
- Begin VB.Label lblEnterNum
- Caption = "Enter a number from 1 to 10"
- Height = 495
- Left = 840
- TabIndex = 0
- Top = 120
- Width = 1335
- End
- Attribute VB_Name = "frm5_3_3"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdInterpret_Click()
- Dim x As Integer, y As Integer, num As Integer
- 'One, Two, Buckle My Shoe
- picPhrase.Cls
- x = 2
- y = 3
- num = Val(txtNumber.Text)
- Select Case num
- Case y - x, x
- picPhrase.Print "Buckle my shoe."
- Case Is <= 4
- picPhrase.Print "Shut the door."
- Case x + y To x * y
- picPhrase.Print "Pick up sticks."
- Case 7, 8
- picPhrase.Print "Lay them straight."
- Case Else
- picPhrase.Print "Start all over again."
- End Select
- End Sub
-