home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form fSimpleAwk
- BorderStyle = 3 'Fixed Double
- Caption = "Simple Awk"
- ClientHeight = 3255
- ClientLeft = 1245
- ClientTop = 1305
- ClientWidth = 7815
- Height = 3720
- Left = 1155
- LinkTopic = "Form1"
- ScaleHeight = 3255
- ScaleWidth = 7815
- Top = 930
- Width = 7995
- Begin VideoSoftAwk VSAwk1
- ConvInfo = FSIMPLEA.FRX:0000
- FileName = "c:\config.sys"
- FS = "="
- Left = 6585
- Top = 2715
- End
- Begin VideoSoftElastic VSElastic1
- Align = 5 'Fill Container
- BevelChildren = 2 'No Elastics
- BevelOuter = 1 'Raised
- BevelOuterWidth = 1
- ConvInfo = FSIMPLEA.FRX:000B
- Height = 3255
- IntBkg = &H00C0C0C0&
- Left = 0
- ShadowColor = &H00404040&
- TabIndex = 1
- Top = 0
- Width = 7815
- Begin VideoSoftElastic VSElastic4
- BevelInner = 0 'None
- BevelOuter = 8 'Raised New Look
- Caption = " Options "
- ConvInfo = FSIMPLEA.FRX:0016
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 1830
- IntBkg = &H00C0C0C0&
- Left = 4680
- Style = 1 'Frame Top
- TabIndex = 4
- TagWidth = 1200
- Top = 615
- Width = 2955
- Begin TextBox Text1
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 285
- Left = 1425
- TabIndex = 8
- Tag = "Field Separator"
- Text = "="
- Top = 1335
- Width = 1365
- End
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "Whole Line"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 375
- Index = 0
- Left = 330
- TabIndex = 7
- Top = 285
- Value = -1 'True
- Width = 1575
- End
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "First Field"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 270
- Index = 1
- Left = 330
- TabIndex = 6
- Top = 630
- Width = 1575
- End
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "Second Field"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00000000&
- Height = 375
- Index = 2
- Left = 330
- TabIndex = 5
- Top = 840
- Width = 1575
- End
- End
- Begin VideoSoftElastic VSElastic3
- BevelInnerWidth = 0
- BevelOuter = 8 'Raised New Look
- Caption = "Parse AUTOEXEC.BAT to the List box"
- CaptionPos = 4 'Center Center
- ConvInfo = FSIMPLEA.FRX:0021
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00800000&
- Height = 525
- IntBkg = &H00C0C0C0&
- Left = 105
- TabIndex = 3
- Top = 60
- Width = 7440
- End
- Begin VideoSoftElastic VSElastic2
- AccessKey = -1 'True
- BevelInner = 0 'None
- BevelOuter = 8 'Raised New Look
- BevelOuterWidth = 0
- Caption = "&Parse"
- CaptionPos = 4 'Center Center
- ChildSpacing = 0
- ConvInfo = FSIMPLEA.FRX:002C
- CornerColor = &H00C0C0C0&
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 510
- IntBkg = &H00C0C0C0&
- Left = 4695
- ShowFocusRect = -1 'True
- Style = 3 'Command Button
- TabIndex = 0
- Top = 2550
- Width = 1575
- End
- Begin ListBox List1
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 2370
- Left = 270
- TabIndex = 2
- Top = 690
- Width = 4260
- End
- End
- Option Explicit
- Sub VSAwk1_Begin ()
- List1.Clear
- End Sub
- Sub VSAwk1_Scan ()
- If Option1(0).Value Then List1.AddItem vsAwk1.F(0)
- If Option1(1).Value Then List1.AddItem vsAwk1.F(1)
- If Option1(2).Value Then List1.AddItem vsAwk1.F(2)
- End Sub
- Sub VSElastic2_Click ()
- vsAwk1.Action = 0 'Start parsing File
- End Sub
-