home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
- Begin VB.Form frmStrManip
- BorderStyle = 3 'Fixed Dialog
- Caption = "String Manipulations"
- ClientHeight = 4776
- ClientLeft = 48
- ClientTop = 336
- ClientWidth = 5004
- Icon = "StrManip.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 4776
- ScaleWidth = 5004
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 'CenterScreen
- Begin VB.PictureBox picieExtreme
- AutoSize = -1 'True
- BorderStyle = 0 'None
- Height = 768
- Left = 30
- Picture = "StrManip.frx":000C
- ScaleHeight = 768
- ScaleWidth = 2856
- TabIndex = 10
- Top = 3480
- Width = 2856
- End
- Begin TabDlg.SSTab Tabs
- Height = 3435
- Left = 30
- TabIndex = 0
- Top = 30
- Width = 4935
- _ExtentX = 8700
- _ExtentY = 6054
- _Version = 327681
- Style = 1
- TabHeight = 520
- TabCaption(0) = "Dir Example"
- TabPicture(0) = "StrManip.frx":1797
- Tab(0).ControlEnabled= -1 'True
- Tab(0).Control(0)= "Label1"
- Tab(0).Control(0).Enabled= 0 'False
- Tab(0).Control(1)= "Label2"
- Tab(0).Control(1).Enabled= 0 'False
- Tab(0).Control(2)= "Label3"
- Tab(0).Control(2).Enabled= 0 'False
- Tab(0).Control(3)= "Label4"
- Tab(0).Control(3).Enabled= 0 'False
- Tab(0).Control(4)= "txtDirInput"
- Tab(0).Control(4).Enabled= 0 'False
- Tab(0).Control(5)= "cmdFilePath"
- Tab(0).Control(5).Enabled= 0 'False
- Tab(0).Control(6)= "txtFilePathOut"
- Tab(0).Control(6).Enabled= 0 'False
- Tab(0).Control(7)= "txtFileNameOut"
- Tab(0).Control(7).Enabled= 0 'False
- Tab(0).Control(8)= "txtRetExtOut"
- Tab(0).Control(8).Enabled= 0 'False
- Tab(0).ControlCount= 9
- TabCaption(1) = "Get Match Count Example"
- TabPicture(1) = "StrManip.frx":17B3
- Tab(1).ControlEnabled= 0 'False
- Tab(1).Control(0)= "Label6"
- Tab(1).Control(1)= "Label7"
- Tab(1).Control(2)= "Label8"
- Tab(1).Control(3)= "txtGMCInp"
- Tab(1).Control(4)= "txtGMCSChars"
- Tab(1).Control(5)= "txtGMCOut"
- Tab(1).Control(6)= "cmdGMCGo"
- Tab(1).ControlCount= 7
- TabCaption(2) = "Wrap Text Example"
- TabPicture(2) = "StrManip.frx":17CF
- Tab(2).ControlEnabled= 0 'False
- Tab(2).Control(0)= "cmdWWGo"
- Tab(2).Control(1)= "txtWWInput"
- Tab(2).Control(2)= "txtWWOut"
- Tab(2).Control(3)= "Label10"
- Tab(2).Control(4)= "Label9"
- Tab(2).ControlCount= 5
- Begin VB.CommandButton cmdWWGo
- Caption = "Go"
- Height = 375
- Left = -73260
- TabIndex = 24
- Top = 3000
- Width = 1185
- End
- Begin VB.TextBox txtWWInput
- Appearance = 0 'Flat
- Height = 795
- Left = -74970
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 22
- Text = "StrManip.frx":17EB
- Top = 630
- Width = 4845
- End
- Begin VB.TextBox txtWWOut
- Appearance = 0 'Flat
- Height = 1215
- Left = -74970
- Locked = -1 'True
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 20
- Text = "StrManip.frx":19D4
- Top = 1740
- Width = 4845
- End
- Begin VB.CommandButton cmdGMCGo
- Caption = "Go"
- Height = 435
- Left = -74700
- TabIndex = 19
- Top = 2700
- Width = 1155
- End
- Begin VB.TextBox txtGMCOut
- Appearance = 0 'Flat
- Height = 285
- Left = -74940
- Locked = -1 'True
- TabIndex = 17
- Text = "17"
- Top = 2370
- Width = 1575
- End
- Begin VB.TextBox txtGMCSChars
- Appearance = 0 'Flat
- Height = 285
- Left = -74940
- MultiLine = -1 'True
- TabIndex = 16
- Text = "StrManip.frx":1BCC
- Top = 1860
- Width = 1575
- End
- Begin VB.TextBox txtGMCInp
- Appearance = 0 'Flat
- Height = 975
- Left = -74940
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 14
- Text = "StrManip.frx":1BD0
- Top = 600
- Width = 1575
- End
- Begin VB.TextBox txtRetExtOut
- Appearance = 0 'Flat
- Height = 285
- Left = 60
- TabIndex = 9
- Text = "test"
- Top = 3060
- Width = 1575
- End
- Begin VB.TextBox txtFileNameOut
- Appearance = 0 'Flat
- Height = 285
- Left = 60
- TabIndex = 7
- Text = "This_is_a.test"
- Top = 2280
- Width = 1575
- End
- Begin VB.TextBox txtFilePathOut
- Appearance = 0 'Flat
- Height = 285
- Left = 60
- Locked = -1 'True
- TabIndex = 5
- Text = "C:\windows\po\"
- Top = 1740
- Width = 1575
- End
- Begin VB.CommandButton cmdFilePath
- Caption = "Go"
- Height = 435
- Left = 300
- TabIndex = 3
- Top = 930
- Width = 1095
- End
- Begin VB.TextBox txtDirInput
- Appearance = 0 'Flat
- Height = 285
- Left = 60
- TabIndex = 2
- Text = "C:\windows\po\This_is_a.test"
- Top = 600
- Width = 1575
- End
- Begin VB.Label Label10
- AutoSize = -1 'True
- Caption = "Input:"
- Height = 195
- Left = -74910
- TabIndex = 23
- Top = 390
- Width = 405
- End
- Begin VB.Label Label9
- AutoSize = -1 'True
- Caption = "Output:"
- Height = 195
- Left = -74910
- TabIndex = 21
- Top = 1500
- Width = 525
- End
- Begin VB.Label Label8
- AutoSize = -1 'True
- Caption = "Output:"
- Height = 195
- Left = -74910
- TabIndex = 18
- Top = 2160
- Width = 525
- End
- Begin VB.Label Label7
- AutoSize = -1 'True
- Caption = "Search Chars:"
- Height = 195
- Left = -74910
- TabIndex = 15
- Top = 1620
- Width = 1005
- End
- Begin VB.Label Label6
- AutoSize = -1 'True
- Caption = "Input Text:"
- Height = 195
- Left = -74910
- TabIndex = 13
- Top = 390
- Width = 765
- End
- Begin VB.Label Label4
- AutoSize = -1 'True
- Caption = "Return Extention Example:"
- Height = 390
- Left = 90
- TabIndex = 8
- Top = 2610
- Width = 1230
- WordWrap = -1 'True
- End
- Begin VB.Label Label3
- AutoSize = -1 'True
- Caption = "File Name Output:"
- Height = 195
- Left = 90
- TabIndex = 6
- Top = 2070
- Width = 1275
- End
- Begin VB.Label Label2
- AutoSize = -1 'True
- Caption = "File Path Output:"
- Height = 195
- Left = 90
- TabIndex = 4
- Top = 1530
- Width = 1185
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Input Text:"
- Height = 195
- Left = 90
- TabIndex = 1
- Top = 390
- Width = 765
- End
- End
- Begin VB.Label Label5
- AutoSize = -1 'True
- Caption = "Copyright 1998 Allen Copeland"
- Height = 195
- Left = 210
- TabIndex = 12
- Top = 4440
- Width = 2175
- End
- Begin VB.Label lblCool
- AutoSize = -1 'True
- Caption = "Here is the Image I would use If I had my very own Company"
- Height = 975
- Left = 3840
- TabIndex = 11
- Top = 3540
- Width = 1110
- WordWrap = -1 'True
- End
- Attribute VB_Name = "frmStrManip"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub cmdFilePath_Click()
- txtFileNameOut = ReturnExtention(txtDirInput, False, "\")
- txtRetExtOut = ReturnExtention(txtDirInput, False)
- txtFilePathOut = FilePath(txtDirInput)
- End Sub
- Private Sub cmdGMCGo_Click()
- txtGMCOut = GetMatchCount(txtGMCInp, txtGMCSChars)
- End Sub
- Private Sub cmdWWGo_Click()
- txtWWOut = WrapText(txtWWInput, txtWWInput.Width - 330, Me)
- End Sub
- Private Sub Form_Load()
- txtGMCSChars = " "
- End Sub
-