home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BorderStyle = 3 'Fixed Double
- Caption = "Type Text into the Boxes to See What Happens"
- ClientHeight = 1710
- ClientLeft = 2070
- ClientTop = 2265
- ClientWidth = 5715
- ControlBox = 0 'False
- Height = 2145
- Left = 1995
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1710
- ScaleWidth = 5715
- Top = 1905
- Width = 5865
- Begin CommandButton Command1
- Cancel = -1 'True
- Caption = "E&xit"
- Height = 375
- Index = 1
- Left = 4680
- TabIndex = 6
- Top = 1200
- Width = 855
- End
- Begin TextBox Text1
- Height = 285
- Index = 2
- Left = 1320
- TabIndex = 5
- Text = "Text1"
- Top = 840
- Width = 4215
- End
- Begin TextBox Text1
- Height = 285
- Index = 1
- Left = 1320
- TabIndex = 4
- Text = "Text1"
- Top = 480
- Width = 4215
- End
- Begin TextBox Text1
- Height = 285
- Index = 0
- Left = 1320
- TabIndex = 3
- Text = "Text1"
- Top = 120
- Width = 4215
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- BackColor = &H00C0C0C0&
- Caption = "Lower:"
- Height = 255
- Index = 2
- Left = 0
- TabIndex = 2
- Top = 840
- Width = 1215
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- BackColor = &H00C0C0C0&
- Caption = "Upper:"
- Height = 255
- Index = 1
- Left = 0
- TabIndex = 1
- Top = 480
- Width = 1215
- End
- Begin Label Label1
- Alignment = 1 'Right Justify
- BackColor = &H00C0C0C0&
- Caption = "Normal:"
- Height = 255
- Index = 0
- Left = 0
- TabIndex = 0
- Top = 120
- Width = 1215
- End
- ' SetUpLo.Frm - Demo the SetUpLo Function
- ' 95/03/02 - Copyright 1995, Larry Rebich, The Bridge, Inc.
- Option Explicit
- DefInt A-Z
- ' Command Indexes
- Const IndexHelp = 0
- Const IndexExit = 1
- Sub Command1_Click (Index As Integer)
- Select Case Index
- Case IndexHelp
- Form2.Show
- Case IndexExit
- End
- End Select
- End Sub
- Sub Form_Load ()
- BackColor = &HC0C0C0
- Move (Screen.Width - Width) \ 2, 500
- Dim x As Integer 'returns true if OK
- x = ForceUpperOrLowerCase(Text1(1), True) 'force lower
- x = ForceUpperOrLowerCase(Text1(2), False) 'force lower
- Text1(1) = UCase$(Text1(1))
- Text1(2) = LCase$(Text1(2))
- Form2.Show
- End Sub
- Sub Text1_GotFocus (Index As Integer)
- Text1(Index).SelStart = 0
- Text1(Index).SelLength = 999
- End Sub
-