home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form fPhone
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "VideoSoft Global Replacement"
- ClientHeight = 3615
- ClientLeft = 1245
- ClientTop = 1710
- ClientWidth = 6045
- Height = 4020
- Left = 1185
- LinkTopic = "Form1"
- ScaleHeight = 3615
- ScaleWidth = 6045
- Top = 1365
- Width = 6165
- Begin TextBox txtTo
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Left = 4305
- TabIndex = 3
- Text = "(510)"
- Top = 945
- Width = 1410
- End
- Begin TextBox txtFrom
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Left = 4305
- TabIndex = 2
- Text = "(415)"
- Top = 570
- Width = 1410
- End
- Begin CommandButton Command1
- BackColor = &H00C0C0C0&
- Caption = "Change Area Code"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 435
- Left = 3990
- TabIndex = 1
- Top = 1350
- Width = 1725
- End
- Begin vsFlexArray fa
- BackColorFixed = &H00000080&
- Cols = 2
- FixedCols = 0
- FocusRect = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColorFixed = &H00FFFFFF&
- FormatString = "Name |Phone "
- Height = 2730
- HighLight = 0 'Never
- Left = 225
- Rows = 1
- TabIndex = 0
- TabStop = 0 'False
- Top = 225
- Width = 3150
- End
- Begin vsFlexString FlexString
- Left = 300
- Pattern = "[^ , ]*"
- Text = "VideoSoft FlexString"
- Top = 3135
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "To:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 240
- Index = 1
- Left = 3720
- TabIndex = 5
- Top = 975
- Width = 495
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "From:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 240
- Index = 0
- Left = 3705
- TabIndex = 4
- Top = 645
- Width = 495
- End
- Option Explicit
- Sub Command1_Click ()
- ' Select Column 1
- fa.Col = 1
- fa.Row = 1
- fa.RowSel = fa.Rows - 1
- ' find and replace string
- FlexString.Text = fa.Clip
- FlexString.Pattern = txtFrom
- FlexString.Replace = txtTo
- ' update FlexArray
- fa.Clip = FlexString.Text
- End Sub
- Sub Form_Load ()
- Dim t$
- t = Chr$(9)
- fa.AddItem "Joe" & t & "(415) 555-1212"
- fa.AddItem "Mary" & t & "(701) 555-1212"
- fa.AddItem "Sam" & t & "(310) 555-1212"
- fa.AddItem "Peter" & t & "(415) 555-1212"
- fa.AddItem "Don" & t & "(415) 555-1212"
- End Sub
-