home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm7_4_1
- Caption = "Swap"
- ClientHeight = 2115
- ClientLeft = 2595
- ClientTop = 1770
- ClientWidth = 2655
- 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 = 2115
- ScaleWidth = 2655
- Begin VB.PictureBox picResult
- Height = 255
- Left = 120
- ScaleHeight = 195
- ScaleWidth = 2355
- TabIndex = 5
- Top = 1680
- Width = 2415
- End
- Begin VB.CommandButton cmdAlphabetize
- Caption = "Alphabetize"
- Height = 495
- Left = 600
- TabIndex = 4
- Top = 1080
- Width = 1215
- End
- Begin VB.TextBox txtSecondWord
- Height = 285
- Left = 1320
- TabIndex = 3
- Top = 600
- Width = 1215
- End
- Begin VB.TextBox txtFirstWord
- Height = 285
- Left = 1320
- TabIndex = 1
- Top = 120
- Width = 1215
- End
- Begin VB.Label lblSecondWord
- Alignment = 1 'Right Justify
- Caption = "Second word"
- Height = 255
- Left = 0
- TabIndex = 2
- Top = 600
- Width = 1215
- End
- Begin VB.Label lblFirstWord
- Alignment = 1 'Right Justify
- Caption = "First word"
- Height = 255
- Left = 0
- TabIndex = 0
- Top = 120
- Width = 1215
- End
- Attribute VB_Name = "frm7_4_1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdAlphabetize_Click()
- Dim firstWord As String, secondWord As String, temp As String
- 'Alphabetize two words
- firstWord = txtFirstWord.Text
- secondWord = txtSecondWord.Text
- If firstWord > secondWord Then
- temp = firstWord
- firstWord = secondWord
- secondWord = temp
- End If
- picResult.Cls
- picResult.Print firstWord; " before "; secondWord
- End Sub
-