home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm3_6_6
- Caption = "3-6-6"
- ClientHeight = 1095
- ClientLeft = 1065
- ClientTop = 1590
- ClientWidth = 4920
- 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 = 1095
- ScaleWidth = 4920
- Begin VB.PictureBox picResults
- Height = 495
- Left = 2280
- ScaleHeight = 435
- ScaleWidth = 2475
- TabIndex = 3
- Top = 480
- Width = 2535
- End
- Begin VB.CommandButton cmdAnalyze
- Caption = "Analyze Name"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 480
- Width = 2055
- End
- Begin VB.TextBox txtFullName
- Height = 285
- Left = 2400
- TabIndex = 1
- Top = 120
- Width = 2415
- End
- Begin VB.Label lblName
- Caption = "Name (first and last only):"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 2295
- End
- Attribute VB_Name = "frm3_6_6"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdAnalyze_Click()
- Dim nom As String 'Name
- Dim n As Integer 'Location of space
- Dim first As String 'First name
- Dim last As String 'Last name
- 'Evaluate functions at variables and expressions.
- picResults.Cls
- nom = txtFullName.Text
- n = InStr(nom, " ")
- first = Left(nom, n - 1)
- last = Right(nom, Len(nom) - n)
- picResults.Print "Your first name is "; first
- picResults.Print "Your last name has"; Len(last); "letters."
- End Sub
-