home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm3_6_5
- Caption = "3-6-5"
- ClientHeight = 2145
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 3885
- 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 = 2145
- ScaleWidth = 3885
- Begin VB.PictureBox picResults
- Height = 1095
- Left = 120
- ScaleHeight = 1035
- ScaleWidth = 3435
- TabIndex = 1
- Top = 120
- Width = 3495
- End
- Begin VB.CommandButton cmdEvaluate
- Caption = "Evaluate Functions"
- Height = 495
- Left = 960
- TabIndex = 0
- Top = 1440
- Width = 2055
- End
- Attribute VB_Name = "frm3_6_5"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Sub cmdEvaluate_Click()
- Dim str1 As String, str2 As String
- 'Evaluate functions at variables and expressions.
- picResults.Cls
- str1 = "Quick as "
- str2 = "a wink"
- picResults.Print Left(str1, 7)
- picResults.Print Mid(str1 & str2, 7, 6)
- picResults.Print UCase(str1 & str2)
- picResults.Print "The average "; Right(str2, 4); " lasts .1 second."
- picResults.Print Trim(str1); str2
- End Sub
-