home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Binary_Fil2075297132007.psc / FileEditor.frm < prev   
Text File  |  2007-07-13  |  65KB  |  1,776 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  4. Begin VB.Form FileEditor 
  5.    Caption         =   "File Editor"
  6.    ClientHeight    =   2730
  7.    ClientLeft      =   60
  8.    ClientTop       =   450
  9.    ClientWidth     =   3900
  10.    Icon            =   "FileEditor.frx":0000
  11.    KeyPreview      =   -1  'True
  12.    LinkTopic       =   "Form1"
  13.    ScaleHeight     =   2730
  14.    ScaleWidth      =   3900
  15.    WindowState     =   2  'Maximized
  16.    Begin MSComctlLib.StatusBar SBar1 
  17.       Align           =   2  'Align Bottom
  18.       Height          =   330
  19.       Left            =   0
  20.       TabIndex        =   0
  21.       Top             =   2400
  22.       Width           =   3900
  23.       _ExtentX        =   6879
  24.       _ExtentY        =   582
  25.       _Version        =   393216
  26.       BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
  27.          NumPanels       =   5
  28.          BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  29.             Object.Width           =   4410
  30.             MinWidth        =   4410
  31.          EndProperty
  32.          BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  33.             Object.Width           =   4410
  34.             MinWidth        =   4410
  35.          EndProperty
  36.          BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  37.             AutoSize        =   2
  38.             Object.Width           =   2461
  39.             MinWidth        =   2469
  40.          EndProperty
  41.          BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  42.          EndProperty
  43.          BeginProperty Panel5 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
  44.             Object.Width           =   4304
  45.             MinWidth        =   4304
  46.          EndProperty
  47.       EndProperty
  48.    End
  49.    Begin VB.PictureBox Tbar 
  50.       BorderStyle     =   0  'None
  51.       Height          =   510
  52.       Index           =   1
  53.       Left            =   2940
  54.       ScaleHeight     =   34
  55.       ScaleMode       =   3  'Pixel
  56.       ScaleWidth      =   722
  57.       TabIndex        =   41
  58.       Top             =   210
  59.       Width           =   10830
  60.       Begin VB.CommandButton cmdBut 
  61.          Height          =   435
  62.          Index           =   6
  63.          Left            =   3780
  64.          Picture         =   "FileEditor.frx":0442
  65.          Style           =   1  'Graphical
  66.          TabIndex        =   56
  67.          ToolTipText     =   "Clipboard"
  68.          Top             =   0
  69.          Width           =   435
  70.       End
  71.       Begin VB.CommandButton cmdBut 
  72.          Height          =   435
  73.          Index           =   14
  74.          Left            =   3150
  75.          Picture         =   "FileEditor.frx":0BAC
  76.          Style           =   1  'Graphical
  77.          TabIndex        =   55
  78.          ToolTipText     =   "Insert Block"
  79.          Top             =   0
  80.          Width           =   435
  81.       End
  82.       Begin VB.CommandButton cmdBut 
  83.          Height          =   435
  84.          Index           =   13
  85.          Left            =   2520
  86.          Picture         =   "FileEditor.frx":1316
  87.          Style           =   1  'Graphical
  88.          TabIndex        =   54
  89.          ToolTipText     =   "Insert Row"
  90.          Top             =   0
  91.          Width           =   435
  92.       End
  93.       Begin VB.CommandButton cmdBut 
  94.          Height          =   435
  95.          Index           =   7
  96.          Left            =   1890
  97.          Picture         =   "FileEditor.frx":1A80
  98.          Style           =   1  'Graphical
  99.          TabIndex        =   53
  100.          ToolTipText     =   "Delete"
  101.          Top             =   0
  102.          Width           =   435
  103.       End
  104.       Begin VB.CommandButton cmdBut 
  105.          Height          =   435
  106.          Index           =   5
  107.          Left            =   1260
  108.          Picture         =   "FileEditor.frx":21EA
  109.          Style           =   1  'Graphical
  110.          TabIndex        =   52
  111.          ToolTipText     =   "Paste"
  112.          Top             =   0
  113.          Width           =   435
  114.       End
  115.       Begin VB.CommandButton cmdBut 
  116.          Height          =   435
  117.          Index           =   4
  118.          Left            =   630
  119.          Picture         =   "FileEditor.frx":2954
  120.          Style           =   1  'Graphical
  121.          TabIndex        =   51
  122.          ToolTipText     =   "Copy"
  123.          Top             =   0
  124.          Width           =   435
  125.       End
  126.       Begin VB.CommandButton cmdBut 
  127.          Height          =   435
  128.          Index           =   3
  129.          Left            =   0
  130.          Picture         =   "FileEditor.frx":30BE
  131.          Style           =   1  'Graphical
  132.          TabIndex        =   50
  133.          ToolTipText     =   "Cut"
  134.          Top             =   0
  135.          Width           =   435
  136.       End
  137.       Begin VB.CommandButton cmdBut 
  138.          Height          =   435
  139.          Index           =   9
  140.          Left            =   5250
  141.          Picture         =   "FileEditor.frx":3828
  142.          Style           =   1  'Graphical
  143.          TabIndex        =   49
  144.          ToolTipText     =   "Print Preview"
  145.          Top             =   0
  146.          Width           =   435
  147.       End
  148.       Begin VB.CommandButton cmdBut 
  149.          Height          =   435
  150.          Index           =   8
  151.          Left            =   4620
  152.          Picture         =   "FileEditor.frx":3F92
  153.          Style           =   1  'Graphical
  154.          TabIndex        =   48
  155.          ToolTipText     =   "Print"
  156.          Top             =   0
  157.          Width           =   435
  158.       End
  159.       Begin VB.TextBox txbGoTo 
  160.          BackColor       =   &H00E0E0E0&
  161.          BeginProperty Font 
  162.             Name            =   "MS Sans Serif"
  163.             Size            =   9.75
  164.             Charset         =   0
  165.             Weight          =   400
  166.             Underline       =   0   'False
  167.             Italic          =   0   'False
  168.             Strikethrough   =   0   'False
  169.          EndProperty
  170.          Height          =   360
  171.          Left            =   7770
  172.          MaxLength       =   9
  173.          TabIndex        =   43
  174.          TabStop         =   0   'False
  175.          Text            =   "1"
  176.          Top             =   40
  177.          Width           =   990
  178.       End
  179.       Begin VB.TextBox txbPage 
  180.          BackColor       =   &H00E0E0E0&
  181.          BeginProperty Font 
  182.             Name            =   "MS Sans Serif"
  183.             Size            =   9.75
  184.             Charset         =   0
  185.             Weight          =   400
  186.             Underline       =   0   'False
  187.             Italic          =   0   'False
  188.             Strikethrough   =   0   'False
  189.          EndProperty
  190.          Height          =   360
  191.          Left            =   10080
  192.          MaxLength       =   5
  193.          TabIndex        =   42
  194.          TabStop         =   0   'False
  195.          Text            =   "1"
  196.          Top             =   40
  197.          Width           =   675
  198.       End
  199.       Begin VB.Label Label2 
  200.          Alignment       =   1  'Right Justify
  201.          AutoSize        =   -1  'True
  202.          Caption         =   "Goto File Location"
  203.          BeginProperty Font 
  204.             Name            =   "MS Sans Serif"
  205.             Size            =   9.75
  206.             Charset         =   0
  207.             Weight          =   400
  208.             Underline       =   0   'False
  209.             Italic          =   0   'False
  210.             Strikethrough   =   0   'False
  211.          EndProperty
  212.          Height          =   240
  213.          Index           =   2
  214.          Left            =   5985
  215.          TabIndex        =   45
  216.          Top             =   75
  217.          Width           =   1725
  218.       End
  219.       Begin VB.Label Label2 
  220.          Alignment       =   1  'Right Justify
  221.          AutoSize        =   -1  'True
  222.          Caption         =   "Goto Page"
  223.          BeginProperty Font 
  224.             Name            =   "MS Sans Serif"
  225.             Size            =   9.75
  226.             Charset         =   0
  227.             Weight          =   400
  228.             Underline       =   0   'False
  229.             Italic          =   0   'False
  230.             Strikethrough   =   0   'False
  231.          EndProperty
  232.          Height          =   240
  233.          Index           =   3
  234.          Left            =   8925
  235.          TabIndex        =   44
  236.          Top             =   75
  237.          Width           =   1080
  238.       End
  239.       Begin VB.Line Line1 
  240.          BorderColor     =   &H00C0C0C0&
  241.          BorderWidth     =   2
  242.          Index           =   2
  243.          X1              =   392
  244.          X2              =   392
  245.          Y1              =   0
  246.          Y2              =   28
  247.       End
  248.       Begin VB.Line Line1 
  249.          BorderColor     =   &H00C0C0C0&
  250.          BorderWidth     =   2
  251.          Index           =   1
  252.          X1              =   294
  253.          X2              =   294
  254.          Y1              =   0
  255.          Y2              =   28
  256.       End
  257.    End
  258.    Begin VB.PictureBox Tbar 
  259.       BorderStyle     =   0  'None
  260.       Height          =   510
  261.       Index           =   2
  262.       Left            =   210
  263.       ScaleHeight     =   34
  264.       ScaleMode       =   3  'Pixel
  265.       ScaleWidth      =   904
  266.       TabIndex        =   37
  267.       Top             =   840
  268.       Width           =   13560
  269.       Begin VB.CommandButton cmdBut 
  270.          Height          =   435
  271.          Index           =   12
  272.          Left            =   12495
  273.          Picture         =   "FileEditor.frx":46FC
  274.          Style           =   1  'Graphical
  275.          TabIndex        =   47
  276.          ToolTipText     =   "Find First"
  277.          Top             =   0
  278.          Width           =   435
  279.       End
  280.       Begin VB.CommandButton cmdBut 
  281.          Height          =   435
  282.          Index           =   11
  283.          Left            =   13125
  284.          Picture         =   "FileEditor.frx":4E66
  285.          Style           =   1  'Graphical
  286.          TabIndex        =   46
  287.          ToolTipText     =   "Find Next"
  288.          Top             =   0
  289.          Width           =   435
  290.       End
  291.       Begin VB.TextBox txbSearch 
  292.          BackColor       =   &H00FFFFC0&
  293.          BeginProperty Font 
  294.             Name            =   "Arial"
  295.             Size            =   12
  296.             Charset         =   0
  297.             Weight          =   400
  298.             Underline       =   0   'False
  299.             Italic          =   0   'False
  300.             Strikethrough   =   0   'False
  301.          EndProperty
  302.          Height          =   465
  303.          Left            =   2625
  304.          TabIndex        =   40
  305.          TabStop         =   0   'False
  306.          Text            =   "Search String"
  307.          Top             =   0
  308.          Width           =   9675
  309.       End
  310.       Begin VB.CommandButton SearchType 
  311.          Caption         =   "TEXT"
  312.          BeginProperty Font 
  313.             Name            =   "MS Sans Serif"
  314.             Size            =   9.75
  315.             Charset         =   0
  316.             Weight          =   400
  317.             Underline       =   0   'False
  318.             Italic          =   0   'False
  319.             Strikethrough   =   0   'False
  320.          EndProperty
  321.          Height          =   450
  322.          Left            =   1680
  323.          TabIndex        =   39
  324.          TabStop         =   0   'False
  325.          Tag             =   "1"
  326.          ToolTipText     =   "Click to Search HEX"
  327.          Top             =   0
  328.          Width           =   855
  329.       End
  330.       Begin VB.CheckBox sCase 
  331.          Caption         =   "Match Case"
  332.          BeginProperty Font 
  333.             Name            =   "MS Sans Serif"
  334.             Size            =   9.75
  335.             Charset         =   0
  336.             Weight          =   400
  337.             Underline       =   0   'False
  338.             Italic          =   0   'False
  339.             Strikethrough   =   0   'False
  340.          EndProperty
  341.          Height          =   450
  342.          Left            =   0
  343.          TabIndex        =   38
  344.          TabStop         =   0   'False
  345.          ToolTipText     =   "Match Case"
  346.          Top             =   0
  347.          Width           =   1485
  348.       End
  349.    End
  350.    Begin VB.PictureBox Tbar 
  351.       BorderStyle     =   0  'None
  352.       Height          =   510
  353.       Index           =   0
  354.       Left            =   210
  355.       ScaleHeight     =   34
  356.       ScaleMode       =   3  'Pixel
  357.       ScaleWidth      =   176
  358.       TabIndex        =   36
  359.       Top             =   210
  360.       Width           =   2640
  361.       Begin VB.CommandButton cmdBut 
  362.          Height          =   435
  363.          Index           =   10
  364.          Left            =   1890
  365.          Picture         =   "FileEditor.frx":55D0
  366.          Style           =   1  'Graphical
  367.          TabIndex        =   60
  368.          ToolTipText     =   "Help"
  369.          Top             =   0
  370.          Width           =   435
  371.       End
  372.       Begin VB.CommandButton cmdBut 
  373.          Height          =   435
  374.          Index           =   2
  375.          Left            =   1260
  376.          Picture         =   "FileEditor.frx":5D3A
  377.          Style           =   1  'Graphical
  378.          TabIndex        =   59
  379.          ToolTipText     =   "Save"
  380.          Top             =   0
  381.          Width           =   435
  382.       End
  383.       Begin VB.CommandButton cmdBut 
  384.          Height          =   435
  385.          Index           =   1
  386.          Left            =   630
  387.          Picture         =   "FileEditor.frx":64A4
  388.          Style           =   1  'Graphical
  389.          TabIndex        =   58
  390.          ToolTipText     =   "Open"
  391.          Top             =   0
  392.          Width           =   435
  393.       End
  394.       Begin VB.CommandButton cmdBut 
  395.          Height          =   435
  396.          Index           =   0
  397.          Left            =   0
  398.          Picture         =   "FileEditor.frx":6C0E
  399.          Style           =   1  'Graphical
  400.          TabIndex        =   57
  401.          ToolTipText     =   "New"
  402.          Top             =   0
  403.          Width           =   435
  404.       End
  405.       Begin VB.Line Line1 
  406.          BorderColor     =   &H00C0C0C0&
  407.          BorderWidth     =   2
  408.          Index           =   0
  409.          X1              =   168
  410.          X2              =   168
  411.          Y1              =   0
  412.          Y2              =   28
  413.       End
  414.    End
  415.    Begin VB.Frame SbarFrame 
  416.       BorderStyle     =   0  'None
  417.       Height          =   2010
  418.       Left            =   735
  419.       TabIndex        =   29
  420.       Top             =   1470
  421.       Width           =   330
  422.       Begin VB.CommandButton cmdScroll 
  423.          Height          =   345
  424.          Index           =   1
  425.          Left            =   0
  426.          MaskColor       =   &H00FFFFFF&
  427.          Picture         =   "FileEditor.frx":7378
  428.          Style           =   1  'Graphical
  429.          TabIndex        =   35
  430.          ToolTipText     =   "Next Block"
  431.          Top             =   1470
  432.          UseMaskColor    =   -1  'True
  433.          Width           =   315
  434.       End
  435.       Begin VB.CommandButton cmdScroll 
  436.          Appearance      =   0  'Flat
  437.          Height          =   345
  438.          Index           =   3
  439.          Left            =   0
  440.          MaskColor       =   &H00FFFFFF&
  441.          Picture         =   "FileEditor.frx":76D9
  442.          Style           =   1  'Graphical
  443.          TabIndex        =   34
  444.          ToolTipText     =   "Next Row"
  445.          Top             =   1155
  446.          UseMaskColor    =   -1  'True
  447.          Width           =   315
  448.       End
  449.       Begin VB.CommandButton cmdScroll 
  450.          Appearance      =   0  'Flat
  451.          Height          =   345
  452.          Index           =   0
  453.          Left            =   0
  454.          MaskColor       =   &H00FFFFFF&
  455.          Picture         =   "FileEditor.frx":7A33
  456.          Style           =   1  'Graphical
  457.          TabIndex        =   33
  458.          ToolTipText     =   "Prev Block"
  459.          Top             =   105
  460.          UseMaskColor    =   -1  'True
  461.          Width           =   315
  462.       End
  463.       Begin VB.CommandButton cmdScroll 
  464.          Height          =   345
  465.          Index           =   2
  466.          Left            =   0
  467.          MaskColor       =   &H00FFFFFF&
  468.          Picture         =   "FileEditor.frx":7D91
  469.          Style           =   1  'Graphical
  470.          TabIndex        =   32
  471.          ToolTipText     =   "Prev Row"
  472.          Top             =   420
  473.          UseMaskColor    =   -1  'True
  474.          Width           =   315
  475.       End
  476.       Begin VB.PictureBox SbarBox 
  477.          Height          =   435
  478.          Left            =   0
  479.          ScaleHeight     =   375
  480.          ScaleWidth      =   255
  481.          TabIndex        =   30
  482.          Top             =   735
  483.          Width           =   315
  484.          Begin VB.CommandButton Sbar 
  485.             BackColor       =   &H0000FF00&
  486.             Height          =   195
  487.             Left            =   -100
  488.             Style           =   1  'Graphical
  489.             TabIndex        =   31
  490.             Top             =   0
  491.             Width           =   500
  492.          End
  493.       End
  494.    End
  495.    Begin VB.Timer DEBUGtimer 
  496.       Enabled         =   0   'False
  497.       Interval        =   300
  498.       Left            =   13965
  499.       Top             =   1470
  500.    End
  501.    Begin MSComDlg.CommonDialog CommonDialog1 
  502.       Left            =   105
  503.       Top             =   1470
  504.       _ExtentX        =   847
  505.       _ExtentY        =   847
  506.       _Version        =   393216
  507.       CancelError     =   -1  'True
  508.       DefaultExt      =   "*.*"
  509.       DialogTitle     =   "Open File"
  510.       Filter          =   $"FileEditor.frx":80EB
  511.    End
  512.    Begin VB.Frame HexFrame 
  513.       Caption         =   "Hex Grid"
  514.       Height          =   645
  515.       Left            =   2310
  516.       TabIndex        =   11
  517.       Top             =   1470
  518.       Width           =   1065
  519.       Begin VB.Label HexGrid 
  520.          Alignment       =   2  'Center
  521.          Appearance      =   0  'Flat
  522.          BackColor       =   &H00FFFFFF&
  523.          Caption         =   "0"
  524.          BeginProperty Font 
  525.             Name            =   "Arial"
  526.             Size            =   9.75
  527.             Charset         =   0
  528.             Weight          =   400
  529.             Underline       =   0   'False
  530.             Italic          =   0   'False
  531.             Strikethrough   =   0   'False
  532.          EndProperty
  533.          ForeColor       =   &H80000008&
  534.          Height          =   225
  535.          Index           =   0
  536.          Left            =   105
  537.          TabIndex        =   12
  538.          Tag             =   "0"
  539.          Top             =   210
  540.          Width           =   645
  541.       End
  542.    End
  543.    Begin VB.Frame TextFrame 
  544.       Caption         =   "Text Grid"
  545.       Height          =   645
  546.       Left            =   3465
  547.       TabIndex        =   9
  548.       Top             =   1470
  549.       Width           =   960
  550.       Begin VB.Label Label7 
  551.          Alignment       =   2  'Center
  552.          Appearance      =   0  'Flat
  553.          BackColor       =   &H00E0E0E0&
  554.          Caption         =   "Reference Data"
  555.          BeginProperty Font 
  556.             Name            =   "Arial"
  557.             Size            =   9
  558.             Charset         =   0
  559.             Weight          =   400
  560.             Underline       =   0   'False
  561.             Italic          =   0   'False
  562.             Strikethrough   =   0   'False
  563.          EndProperty
  564.          ForeColor       =   &H80000008&
  565.          Height          =   540
  566.          Index           =   4
  567.          Left            =   840
  568.          TabIndex        =   28
  569.          Top             =   2415
  570.          Width           =   1170
  571.       End
  572.       Begin VB.Label Label7 
  573.          Alignment       =   2  'Center
  574.          Appearance      =   0  'Flat
  575.          BackColor       =   &H00FFFFC0&
  576.          Caption         =   "Search Text"
  577.          BeginProperty Font 
  578.             Name            =   "Arial"
  579.             Size            =   9
  580.             Charset         =   0
  581.             Weight          =   400
  582.             Underline       =   0   'False
  583.             Italic          =   0   'False
  584.             Strikethrough   =   0   'False
  585.          EndProperty
  586.          ForeColor       =   &H80000008&
  587.          Height          =   330
  588.          Index           =   3
  589.          Left            =   840
  590.          TabIndex        =   27
  591.          Top             =   1995
  592.          Width           =   1170
  593.       End
  594.       Begin VB.Label Label7 
  595.          Alignment       =   2  'Center
  596.          Appearance      =   0  'Flat
  597.          BackColor       =   &H80000012&
  598.          Caption         =   "Selected Text"
  599.          BeginProperty Font 
  600.             Name            =   "Arial"
  601.             Size            =   9
  602.             Charset         =   0
  603.             Weight          =   400
  604.             Underline       =   0   'False
  605.             Italic          =   0   'False
  606.             Strikethrough   =   0   'False
  607.          EndProperty
  608.          ForeColor       =   &H00FFFFFF&
  609.          Height          =   330
  610.          Index           =   2
  611.          Left            =   840
  612.          TabIndex        =   26
  613.          Top             =   1575
  614.          Width           =   1170
  615.       End
  616.       Begin VB.Label Label7 
  617.          Alignment       =   2  'Center
  618.          Appearance      =   0  'Flat
  619.          BackColor       =   &H00FFFFFF&
  620.          BorderStyle     =   1  'Fixed Single
  621.          Caption         =   "Start of Page Marker"
  622.          BeginProperty Font 
  623.             Name            =   "Arial"
  624.             Size            =   9
  625.             Charset         =   0
  626.             Weight          =   400
  627.             Underline       =   0   'False
  628.             Italic          =   0   'False
  629.             Strikethrough   =   0   'False
  630.          EndProperty
  631.          ForeColor       =   &H80000008&
  632.          Height          =   540
  633.          Index           =   1
  634.          Left            =   840
  635.          TabIndex        =   25
  636.          Top             =   945
  637.          Width           =   1170
  638.       End
  639.       Begin VB.Label Label7 
  640.          Alignment       =   2  'Center
  641.          Caption         =   "Legend"
  642.          BeginProperty Font 
  643.             Name            =   "Arial"
  644.             Size            =   9
  645.             Charset         =   0
  646.             Weight          =   400
  647.             Underline       =   0   'False
  648.             Italic          =   0   'False
  649.             Strikethrough   =   0   'False
  650.          EndProperty
  651.          Height          =   225
  652.          Index           =   0
  653.          Left            =   840
  654.          TabIndex        =   24
  655.          Top             =   630
  656.          Width           =   1170
  657.       End
  658.       Begin VB.Label PGID 
  659.          Caption         =   "Page 1"
  660.          BeginProperty Font 
  661.             Name            =   "Arial"
  662.             Size            =   9
  663.             Charset         =   0
  664.             Weight          =   400
  665.             Underline       =   0   'False
  666.             Italic          =   0   'False
  667.             Strikethrough   =   0   'False
  668.          EndProperty
  669.          Height          =   225
  670.          Left            =   840
  671.          TabIndex        =   23
  672.          Top             =   315
  673.          Width           =   1170
  674.       End
  675.       Begin VB.Label TextGrid 
  676.          Alignment       =   2  'Center
  677.          Appearance      =   0  'Flat
  678.          BackColor       =   &H00FFFFFF&
  679.          Caption         =   "0"
  680.          BeginProperty Font 
  681.             Name            =   "Terminal"
  682.             Size            =   12
  683.             Charset         =   255
  684.             Weight          =   400
  685.             Underline       =   0   'False
  686.             Italic          =   0   'False
  687.             Strikethrough   =   0   'False
  688.          EndProperty
  689.          ForeColor       =   &H80000008&
  690.          Height          =   225
  691.          Index           =   0
  692.          Left            =   105
  693.          TabIndex        =   10
  694.          Top             =   315
  695.          Width           =   750
  696.       End
  697.    End
  698.    Begin VB.Frame PreviewPrint 
  699.       Caption         =   "Print Preview"
  700.       Height          =   645
  701.       Left            =   4515
  702.       TabIndex        =   15
  703.       Top             =   1470
  704.       Visible         =   0   'False
  705.       Width           =   1170
  706.       Begin VB.CommandButton PrevOK 
  707.          Caption         =   "OK"
  708.          Height          =   330
  709.          Left            =   210
  710.          TabIndex        =   22
  711.          Top             =   2415
  712.          Width           =   750
  713.       End
  714.       Begin VB.Frame Prange 
  715.          Caption         =   "Print Range"
  716.          Height          =   1380
  717.          Left            =   210
  718.          TabIndex        =   17
  719.          Top             =   945
  720.          Width           =   3795
  721.          Begin VB.TextBox PRpages 
  722.             Height          =   330
  723.             Left            =   1155
  724.             TabIndex        =   20
  725.             Top             =   735
  726.             Width           =   2430
  727.          End
  728.          Begin VB.OptionButton PR 
  729.             Caption         =   "Pages"
  730.             Height          =   225
  731.             Index           =   1
  732.             Left            =   105
  733.             TabIndex        =   19
  734.             Top             =   780
  735.             Width           =   855
  736.          End
  737.          Begin VB.OptionButton PR 
  738.             Caption         =   "All"
  739.             Height          =   225
  740.             Index           =   0
  741.             Left            =   105
  742.             TabIndex        =   18
  743.             Top             =   315
  744.             Value           =   -1  'True
  745.             Width           =   855
  746.          End
  747.       End
  748.       Begin VB.TextBox PVtext 
  749.          Appearance      =   0  'Flat
  750.          BackColor       =   &H00FFFFFF&
  751.          Height          =   225
  752.          Left            =   210
  753.          Locked          =   -1  'True
  754.          MultiLine       =   -1  'True
  755.          TabIndex        =   16
  756.          Top             =   210
  757.          Width           =   330
  758.       End
  759.       Begin VB.Label PofP 
  760.          Alignment       =   2  'Center
  761.          AutoSize        =   -1  'True
  762.          Caption         =   "Page 0 of 0"
  763.          Height          =   345
  764.          Left            =   1470
  765.          TabIndex        =   21
  766.          Top             =   525
  767.          Width           =   855
  768.       End
  769.    End
  770.    Begin VB.Frame FileLoc 
  771.       Caption         =   "File Location"
  772.       Height          =   645
  773.       Left            =   1260
  774.       TabIndex        =   13
  775.       Top             =   1470
  776.       Width           =   960
  777.       Begin VB.Label Label3 
  778.          Alignment       =   1  'Right Justify
  779.          Caption         =   "0"
  780.          BeginProperty Font 
  781.             Name            =   "Arial"
  782.             Size            =   9.75
  783.             Charset         =   0
  784.             Weight          =   400
  785.             Underline       =   0   'False
  786.             Italic          =   0   'False
  787.             Strikethrough   =   0   'False
  788.          EndProperty
  789.          Height          =   225
  790.          Index           =   0
  791.          Left            =   210
  792.          TabIndex        =   14
  793.          Top             =   210
  794.          Width           =   645
  795.       End
  796.    End
  797.    Begin VB.Shape Shape1 
  798.       BorderColor     =   &H00C0C0C0&
  799.       Height          =   645
  800.       Index           =   1
  801.       Left            =   105
  802.       Top             =   735
  803.       Width           =   13770
  804.    End
  805.    Begin VB.Shape Shape1 
  806.       BorderColor     =   &H00C0C0C0&
  807.       Height          =   645
  808.       Index           =   0
  809.       Left            =   105
  810.       Top             =   105
  811.       Width           =   13770
  812.    End
  813.    Begin VB.Label DEBUGtext 
  814.       Height          =   225
  815.       Index           =   3
  816.       Left            =   14490
  817.       TabIndex        =   8
  818.       Top             =   735
  819.       UseMnemonic     =   0   'False
  820.       Visible         =   0   'False
  821.       Width           =   645
  822.    End
  823.    Begin VB.Label DEBUGtext 
  824.       Height          =   225
  825.       Index           =   2
  826.       Left            =   14490
  827.       TabIndex        =   7
  828.       Top             =   525
  829.       UseMnemonic     =   0   'False
  830.       Visible         =   0   'False
  831.       Width           =   645
  832.    End
  833.    Begin VB.Label DEBUGtext 
  834.       Height          =   225
  835.       Index           =   1
  836.       Left            =   14490
  837.       TabIndex        =   6
  838.       Top             =   315
  839.       UseMnemonic     =   0   'False
  840.       Visible         =   0   'False
  841.       Width           =   645
  842.    End
  843.    Begin VB.Label DEBUGtext 
  844.       Height          =   225
  845.       Index           =   0
  846.       Left            =   14490
  847.       TabIndex        =   5
  848.       Top             =   105
  849.       UseMnemonic     =   0   'False
  850.       Visible         =   0   'False
  851.       Width           =   645
  852.    End
  853.    Begin VB.Label DEBUGLabel 
  854.       Alignment       =   1  'Right Justify
  855.       Caption         =   "FL:"
  856.       Height          =   225
  857.       Index           =   3
  858.       Left            =   13965
  859.       TabIndex        =   4
  860.       Top             =   735
  861.       UseMnemonic     =   0   'False
  862.       Visible         =   0   'False
  863.       Width           =   405
  864.    End
  865.    Begin VB.Label DEBUGLabel 
  866.       Alignment       =   1  'Right Justify
  867.       Caption         =   "SFP:"
  868.       Height          =   225
  869.       Index           =   2
  870.       Left            =   13965
  871.       TabIndex        =   3
  872.       Top             =   525
  873.       UseMnemonic     =   0   'False
  874.       Visible         =   0   'False
  875.       Width           =   405
  876.    End
  877.    Begin VB.Label DEBUGLabel 
  878.       Alignment       =   1  'Right Justify
  879.       Caption         =   "SL:"
  880.       Height          =   225
  881.       Index           =   1
  882.       Left            =   13965
  883.       TabIndex        =   2
  884.       Top             =   315
  885.       UseMnemonic     =   0   'False
  886.       Visible         =   0   'False
  887.       Width           =   405
  888.    End
  889.    Begin VB.Label DEBUGLabel 
  890.       Alignment       =   1  'Right Justify
  891.       Caption         =   "FF:"
  892.       Height          =   225
  893.       Index           =   0
  894.       Left            =   13965
  895.       TabIndex        =   1
  896.       Top             =   105
  897.       UseMnemonic     =   0   'False
  898.       Visible         =   0   'False
  899.       Width           =   405
  900.    End
  901.    Begin VB.Menu mnuChoose 
  902.       Caption         =   "Choose"
  903.       Visible         =   0   'False
  904.       Begin VB.Menu cmdPop 
  905.          Caption         =   "Cut"
  906.          Index           =   0
  907.       End
  908.       Begin VB.Menu cmdPop 
  909.          Caption         =   "Copy"
  910.          Index           =   1
  911.       End
  912.       Begin VB.Menu cmdPop 
  913.          Caption         =   "Paste"
  914.          Index           =   2
  915.       End
  916.       Begin VB.Menu cmdPop 
  917.          Caption         =   "Delete"
  918.          Index           =   3
  919.       End
  920.       Begin VB.Menu sep1 
  921.          Caption         =   "-"
  922.       End
  923.       Begin VB.Menu popInsert 
  924.          Caption         =   "Insert Row"
  925.          Index           =   0
  926.       End
  927.       Begin VB.Menu popInsert 
  928.          Caption         =   "Insert Block"
  929.          Index           =   1
  930.       End
  931.    End
  932. End
  933. Attribute VB_Name = "FileEditor"
  934. Attribute VB_GlobalNameSpace = False
  935. Attribute VB_Creatable = False
  936. Attribute VB_PredeclaredId = True
  937. Attribute VB_Exposed = False
  938. Option Explicit
  939.   
  940. '----------------------------------------------------------\
  941. 'Author: Richard E. Gagnon.                                |
  942. 'URL:    http://members.cox.net/reg501/                    |
  943. 'Email:  reg501@cox.net                                    |
  944. 'Copyright ⌐ 2007 Richard E. Gagnon. All Rights Reserved.  |
  945. '----------------------------------------------------------/
  946.  
  947. '----------------------------------------------------------\
  948. 'Don't forget to set:                                      |
  949. 'Project.. References... for "Microsoft Scripting Runtime" |
  950. 'This will enable the FileSystemObject                     |
  951. '----------------------------------------------------------/
  952.  
  953. 'Functions
  954. Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
  955. Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Dest As Any, Source As Any, ByVal Length As Long)
  956.  
  957. 'Constants
  958. Const KEY_F1 = &H70: Const KEY_F2 = &H71
  959. Const KEY_F3 = &H72: Const KEY_F4 = &H73
  960. Const KEY_F5 = &H74: Const KEY_F6 = &H75
  961. Const KEY_F7 = &H76: Const KEY_F8 = &H77
  962. Const KEY_F9 = &H78: Const KEY_F10 = &H79
  963. Const KEY_F11 = &H7A: Const KEY_F12 = &H7B
  964. Const KEY_SHIFT = &H10: Const KEY_ESCAPE = &H1B
  965. Const KEY_PRIOR = &H21: Const KEY_NEXT = &H22
  966. Const KEY_HOME = &H24: Const KEY_END = &H23
  967. Const KEY_DELETE = &H2E: Const KEY_CTRL = &H11
  968. Const KEY_LEFT = &H25: Const KEY_RIGHT = &H27
  969. Const KEY_UP = &H26: Const KEY_DOWN = &H28
  970. Const zGray = &HE0E0E0: Const zAqua = &HFFFFC0
  971. Const zWhite = &HFFFFFF: Const zBlack = &H80000012
  972. Const zRed = &H8080FF
  973.  
  974. 'Printer variables and constants
  975. Const CPL = 16          'Characters Per Line
  976. Const RPP = 52          'Rows Per Page
  977. Const CPP = CPL * RPP   'Characters Per Page (CPL*RPP)
  978. Private PrintPages() As Boolean
  979. '=======================
  980. Private WorkSpace() As Byte 'Open File Array
  981. '-----------------------
  982. Private SbarPos As Long     'Scroll Bar Position
  983. Private SL As Integer       '# of selected bytes
  984. Private SFP As Long         'Byte pointer
  985. Private FL As Long          'End of file pointer
  986. Private FF As Long          'Top of Page pointer
  987. Private GP As Integer       'Grid pointer
  988. Private DragStart As Boolean
  989. Private TypeOK As Boolean
  990. Private GridType As Boolean 'TRUE=HEX grid, FALSE=TEXT grid
  991. Private OpenFileName As String
  992. Private FSO As New FileSystemObject
  993.  
  994. Private Function GetKeyInput(mKey As Long) As Integer
  995. GetKeyInput = GetKeyState(mKey)
  996. End Function
  997.  
  998. Private Sub ExportToClipboard()
  999. Dim I As Integer, J As Integer
  1000. Dim CopyString As String
  1001. CopyString = Clipboard.GetText()
  1002.     For I = 0 To 511
  1003.         MyClip.TextGrid(I).Caption = ""
  1004.     Next I
  1005.     If GridType Then
  1006.         For I = 1 To Len(CopyString) Step 2
  1007.             MyClip.TextGrid(J).Caption = Mid(CopyString, I, 2)
  1008.             J = J + 1
  1009.         Next I
  1010.     Else
  1011.         For I = 1 To Len(CopyString)
  1012.             MyClip.TextGrid(I - 1).Caption = Mid(CopyString, I, 1)
  1013.         Next I
  1014.     End If
  1015. End Sub
  1016.  
  1017. Private Sub CutPaste(OP As Boolean, PasteBytes() As Byte)
  1018. 'TRUE=Cut..FALSE=Paste
  1019. If SFP >= 0 And SL > 0 Then
  1020.     Dim nBytes As Long
  1021.     Dim I As Long
  1022.     If OP = False Then  'Paste
  1023.         nBytes = UBound(PasteBytes)
  1024.         ReDim Preserve WorkSpace(1 To FL + nBytes)
  1025.         ' Move the bytes DOWN in the Array--Dest,Src,Bytes to move
  1026.         If FL - SFP > 0 Then Call CopyMemory(ByVal VarPtr(WorkSpace(nBytes + SFP + 1)), ByVal VarPtr(WorkSpace(SFP + 1)), FL - SFP)
  1027.         ' Copy the selected data to the Array--Dest,Src,Bytes to move
  1028.         Call CopyMemory(ByVal VarPtr(WorkSpace(SFP + 1)), PasteBytes(1), nBytes)
  1029.         FL = FL + nBytes
  1030.     Else            'Cut
  1031.         If FL - SL > 0 Then
  1032.             ' Move the Data UP in the Array--Dest,Src,Bytes to move
  1033.             If FL - (SL + SFP) > 0 Then Call CopyMemory(ByVal VarPtr(WorkSpace(SFP + 1)), ByVal VarPtr(WorkSpace(SL + SFP + 1)), FL - (SL + SFP))
  1034.             FL = FL - SL
  1035.             ReDim Preserve WorkSpace(1 To FL)
  1036.         Else
  1037.             ReDim WorkSpace(1 To 1)
  1038.             FL = 1
  1039.         End If
  1040.     End If
  1041.     If FF > FL Then FF = FL
  1042.     If FF < 0 Then FF = 0
  1043.     ShowFileInfo
  1044. End If
  1045. End Sub
  1046.  
  1047. Private Sub UpdatePageCount()
  1048. If FL / CPP <> Int(FL / CPP) Then
  1049.     ReDim PrintPages(1 To Int(FL / CPP) + 1)
  1050. Else
  1051.     ReDim PrintPages(1 To Int(FL / CPP))
  1052. End If
  1053. End Sub
  1054.  
  1055. Private Sub goClip()
  1056. MyClip.Show
  1057. End Sub
  1058.  
  1059. Private Sub goCopy()
  1060. If SFP >= 0 And SL > 0 Then
  1061.     Dim saveok As Integer
  1062.     Dim cBad As Boolean
  1063.     Dim I As Integer, J As Integer
  1064.     Dim CopyString As String
  1065.     cBad = False
  1066.     J = SFP - FF
  1067.     Clipboard.Clear
  1068.     For I = J To (J + SL) - 1
  1069.         If GridType Then
  1070.             CopyString = CopyString + HexGrid(I).Caption
  1071.         Else
  1072.             If HexGrid(I).Caption = "00" Then cBad = True
  1073.             CopyString = CopyString + TextGrid(I).Caption
  1074.         End If
  1075.     Next I
  1076.     saveok = True
  1077.     If cBad Then
  1078.         If MsgBox("The text you have selected contains" & vbCrLf & _
  1079.                   "null characters and will not paste correctly." & vbCrLf & _
  1080.                   "Copy from HEX Grid instead" & vbCrLf & vbCrLf & _
  1081.                   " Want to continue with the current operation?" _
  1082.                   , vbExclamation + vbYesNo, " File Editor") = vbNo Then saveok = False
  1083.     End If
  1084.     If saveok Then
  1085.         Clipboard.SetText CopyString
  1086.         ExportToClipboard
  1087.     End If
  1088. End If
  1089. End Sub
  1090.  
  1091. Private Sub goCut()
  1092. If SFP >= 0 And SL > 0 Then
  1093.     Dim I As Integer, J As Integer
  1094.     Dim CopyString As String
  1095.     Dim saveok As Integer
  1096.     Dim cBad As Boolean
  1097.     cBad = False
  1098.     Clipboard.Clear
  1099.     J = SFP - FF
  1100.     For I = J To (J + SL) - 1
  1101.         If GridType Then
  1102.              CopyString = CopyString + HexGrid(I).Caption
  1103.         Else
  1104.              If HexGrid(I).Caption = "00" Then cBad = True
  1105.              CopyString = CopyString + TextGrid(I).Caption
  1106.         End If
  1107.     Next I
  1108.     saveok = True
  1109.     If cBad Then
  1110.         If MsgBox("The text you have selected contains" & vbCrLf & _
  1111.                   "null characters and will not paste correctly." & vbCrLf & _
  1112.                   "Copy from HEX Grid instead" & vbCrLf & vbCrLf & _
  1113.                   " Want to continue with the current operation?" _
  1114.                   , vbExclamation + vbYesNo, " File Editor") = vbNo Then saveok = False
  1115.     End If
  1116.     If saveok Then
  1117.         Dim dummy() As Byte
  1118.         Clipboard.SetText CopyString
  1119.         ExportToClipboard
  1120.         CutPaste True, dummy()
  1121.         UpdateGridData
  1122.         SelectGrid SFP - FF
  1123.     End If
  1124. End If
  1125. End Sub
  1126.  
  1127. Private Sub goDelete()
  1128. If SFP >= 0 And SL > 0 Then
  1129.     Dim dummy() As Byte
  1130.     CutPaste True, dummy()
  1131.     UpdateGridData
  1132.     SelectGrid SFP - FF
  1133. End If
  1134. End Sub
  1135.  
  1136. Private Sub goHelp()
  1137. FileEditHelp.Show
  1138. End Sub
  1139.  
  1140. Private Sub goNew()
  1141. Dim I As Integer
  1142. On Error GoTo NEWerr
  1143. Dim Fnum As Integer
  1144. Dim Fname As String
  1145. Dim saveok As Boolean
  1146. CommonDialog1.DialogTitle = "SAVE FILE"
  1147. CommonDialog1.FileName = OpenFileName
  1148. CommonDialog1.Filter = "All files (*.*)|*.*|WAV files (*.wav)|*.wav|COM files (*.com)|*.com|BIN files (*.bin)|*.bin |SYS files (*.sys)|*.sys|DLL files (*.dll)|*.dll|HEX files (*.hex)|*.hex"
  1149. CommonDialog1.Flags = cdlOFNFileMustExist
  1150. CommonDialog1.ShowSave
  1151. Fname = CommonDialog1.FileName
  1152. saveok = True
  1153. If Dir(Fname) <> "" Then
  1154.     If MsgBox("Do you want to overwrite file '" & Fname & " ' ?", vbQuestion + vbYesNo, " File Editor") = vbNo Then saveok = False
  1155. End If
  1156. If saveok Then
  1157.     ShowGrids True
  1158.     If FSO.FileExists(Fname) Then FSO.DeleteFile (Fname)
  1159.     ReDim WorkSpace(1 To 1)
  1160.     Fnum = FreeFile
  1161.     Open Fname For Binary Access Write As Fnum
  1162.     Put Fnum, , WorkSpace()
  1163.     Close Fnum
  1164.     Me.Caption = "File Editor"
  1165.     SFP = 0: SL = 1: FF = 0
  1166.     FillLabels
  1167.     ClearGrid
  1168.     For I = 0 To 511
  1169.         HexGrid(I).Caption = ""
  1170.         HexGrid(I).Tag = ""
  1171.         TextGrid(I).Caption = ""
  1172.     Next I
  1173.     HexGrid(0).Caption = "00"
  1174.     OpenFileName = Fname
  1175.     Me.Caption = OpenFileName
  1176.     ShowFileInfo
  1177.     FL = FSO.GetFile(OpenFileName).Size
  1178. End If
  1179. If Tbar(1).Enabled Then txbSearch.SetFocus: TypeOK = False
  1180. Exit Sub
  1181. NEWerr:
  1182. If Tbar(1).Enabled Then txbSearch.SetFocus: TypeOK = False
  1183. If Err <> 32755 Then MsgBox (Error & vbCr & vbCr & "Error Number: " & Str(Err)), vbCritical, "! ERROR !"
  1184. End Sub
  1185.  
  1186. Private Sub goOpen()
  1187. Dim FilePath As String
  1188. Dim Fnum As Integer
  1189. On Error GoTo OPNerr
  1190. CommonDialog1.Filter = "All files (*.*)|*.*|WAV files (*.wav)|*.wav|COM files (*.com)|*.com|BIN files (*.bin)|*.bin |SYS files (*.sys)|*.sys|DLL files (*.dll)|*.dll|HEX files (*.hex)|*.hex"
  1191. CommonDialog1.DialogTitle = "OPEN FILE"
  1192. CommonDialog1.FileName = ""
  1193. CommonDialog1.Flags = cdlOFNFileMustExist
  1194. CommonDialog1.ShowOpen
  1195. OpenFileName = CommonDialog1.FileName
  1196. If OpenFileName <> "" Then
  1197.     FL = FSO.GetFile(OpenFileName).Size
  1198.     'Max file size = 2,147,483,647 bytes
  1199.     If FL > 0 Then
  1200.         ShowGrids True
  1201.         Fnum = FreeFile
  1202.         Open OpenFileName For Binary Access Read As Fnum
  1203.         ReDim WorkSpace(1 To FL)
  1204.         Get Fnum, , WorkSpace
  1205.         Close Fnum
  1206.         Me.Caption = OpenFileName
  1207.         FF = 0
  1208.         UpdateGridData
  1209.         SelectGrid 0, True
  1210.         ShowFileInfo
  1211.     Else
  1212.         MsgBox ("File contains no data!..."), vbExclamation, "No Data"
  1213.     End If
  1214. End If
  1215. If Tbar(1).Enabled Then txbSearch.SetFocus: TypeOK = False
  1216. Exit Sub
  1217. OPNerr:
  1218. If Tbar(1).Enabled Then txbSearch.SetFocus: TypeOK = False
  1219. If Err <> 32755 Then MsgBox (Error & vbCr & vbCr & "Error Number: " & Str(Err)), vbCritical, "! ERROR !"
  1220. End Sub
  1221.  
  1222. Private Sub goPaste()
  1223. On Error Resume Next
  1224. Dim nBytes As Long
  1225. Dim TempByte As Byte
  1226. Dim CopyString As String
  1227. Dim arrPaste() As Byte
  1228. CopyString = Clipboard.GetText()
  1229. MousePointer = 11
  1230. SBar1.Panels(4).Text = "Processing....."
  1231. If CopyString <> "" Then
  1232.     Dim I As Long
  1233.     Dim zSL As Integer, zSFP As Long
  1234.     TempByte = CByte("&h" & Mid(CopyString, 1, 2))
  1235.     If Not GridType Then
  1236.         nBytes = Len(CopyString)
  1237.         ReDim arrPaste(1 To nBytes)
  1238.         For I = 1 To nBytes
  1239.             arrPaste(I) = Asc(Mid(CopyString, I, 1))
  1240.             If I = 65536 Then DoEvents
  1241.         Next I
  1242.     Else
  1243.         nBytes = Len(CopyString) / 2
  1244.         ReDim arrPaste(1 To nBytes)
  1245.         For I = 1 To nBytes
  1246.             arrPaste(I) = CByte("&h" & Mid(CopyString, I * 2 - 1, 2))
  1247.             If I = 65536 Then DoEvents
  1248.             If Err = 13 Then
  1249.                 MsgBox ("Paste data is invalid Hex data." & vbCr & "Try pasting in Text Grid instead"), vbInformation, " File Editor"
  1250.                 GoTo ErrOut
  1251.             End If
  1252.         Next I
  1253.     End If
  1254.     If SL > 1 Then
  1255.         zSL = SL: zSFP = SFP    'Preserve pointers
  1256.         CutPaste True, arrPaste()
  1257.         SL = zSL: SFP = zSFP    'Restore pointers
  1258.     End If
  1259.     CutPaste False, arrPaste()
  1260.     UpdateGridData
  1261.     SelectGrid SFP - FF
  1262. Else
  1263.     MsgBox ("Nothing to Paste"), vbInformation, " File Editor"
  1264. End If
  1265. ErrOut:
  1266. MousePointer = 0 
  1267. End If
  1268. Er- FF
  1269. Else
  1270.     M And Srr)), vbCm= 0 
  1271. .CommanL
  1272.     End 0 > 1 Then
  1273.  " & Strnter
  1274. ovate Sub goHelp()iir
  1275. If Err <> 3275r &  "Choose"
  1276.       Visible  :
  1277.       Heighte)
  1278.   (&  "Choose"+FP    e  :
  1279.    FSi(BHeightring)cZ
  1280.  
  1281. Private Sub instead"),i"+FP          SL = zSL: SFP = zSFP    'Rtp   'Rtp   'Rtp   'Rtp   'R      nters
  1282.         CutPaste True, arrPaste()onic     =   0   'False         Indffe
  1283.     e Fnum
  1284.     Me.Caption = "File Edi     SL = zSL:   onic     =String) /  ("No|COM Rtp   .EnabP    'Rtp   'Rtp   'Rtp   '     nters
  1285.         CutPaste Sub instead"),i"+FP   0"
  1286. C"+FP    e  :
  1287.    FSi(BHe7ignment +FP    e  :
  1288.    FSi(BHe7ie onic     =String)e  :
  1289.  47 byt CByte("&h" ame = Fname
  1290.     Me.Caption = OpenFileName
  1291.    0("&h"     PP) + 1)
  1292. Els+ BeginPrp+ Fnum
  1293.     Me.Caption = "FileenFileNaad"),i"+FP   0"
  1294.     Me.Capti(I).CaptioileNa 9.75
  1295.  CaptioileN3um
  1296.     Me.Captionb   'False
  1297.  String <> "" Tnp ofSi(BHe7ie o  If  =   11en   He If Nmation,   =   2  'Center
  1298.          Caption   FSi(ridDat Then
  1299.  " & Stnters
  1300.      mandButtonLme
  1301.     Me.kSpace(SL + =a
  1302.        Visiiiiiiiiiiiiiii  :
  1303.   Ye
  1304.    xMsgBLiii  :
  1305.   Ye
  1306.    xMsgBLiii)1eeeeeee   End IfFSO.Filemation,   = e        Lef+FP   0"     |
  1307. 'Email:  reg5='Leeeeeee   End IfFSO.Filemationmail:  reg5='F
  1308.     End If
  1309. EP   0"
  1310. C"+1   C275r &  "Choose"
  1311.       Visib4      End
  1312.  5r &  "CCCCCCCCCCCCL: SFP = zSFP  Hwav|COf
  1313. Er- FF"HHeigh          Visib4      End
  1314.  5r &  "CCCCCCCCCCCCL: SFP = zSFP  Hwav|COf
  1315. Er- FF"HHeigh          Visib4      End
  1316.  5r &  "CCCCCCCCCCCCL: SFP = zSFP  Hwav|COf
  1317. Er- FF"HHeigh          Visib4      End
  1318.  5r &  "CCCCCCCCCCCCL: SFP = zSFP  Hwav|COf
  1319. Er- FF"HHeigh          Vis  Hep   .EnabP    'Rtp   'Rtp   'Rtp   '     nters
  1320.         CutPa1igh          Vis  Hes  Hes  Hes  Hes(EY_CTRL = &H11
  1321. Const KEY_LEFT = enter
  1322.          Caption   FSi(      IP1CCCL: SFP = zSFP  Hb I
  1323.     saveok = TG     Hb I
  1324.  
  1325.  " ionb   is  Hep   .Eigh          Vis  Hep  VirtKey As Long) As I      ViMnstead     =  f
  1326. EP   0"
  1327.   is  tion,H3:a+P     Vis T0k
  1328.         ExportToClip 210-  3
  1329.      ng = Cnformation, " tpzSFP  HwaP    'Restore pointers+)
  1330.     Close Fnu  FCCL: SF)aveok = T   save  'Center
  1331.          Caption   FSi(ridDat SF)aveok = T   save  'Cens  tio(ridDat S     W  isw()CL: SFP = um
  1332.     Meeok = T   save       Caption      GsSF)aveok ead  (   =   9=ave       CaptCCCCCCCCCCCL:les (*.hex)|*.hex"
  1333. Common     Dcose"+FP    e     = e        Lef+FP   0, vbInformat(ridmon alogTitle c:rx":6C0     =  T   sav1    e     = e eigh  File(o sa":6C0  8: Const(SFS     W  isw()CL: SFP = um
  1334.  S   W  iuoileNa 9.0   idDat Tht  End
  1335.      rL: SFP = um
  1336.  rht  es)
  1337.   = 13 Then
  1338. 1 Const( cis  HepCL: SFP<= 1313 The"R     =   1260
  1339.       Tab)FP<= 1313 The"R     =   1260
  1340.       Tab)FP<= 13me
  1341. If Op 13me
  1342. IeP=0 EndProperty
  1343.          Height          =   225
  1344.                &    MsgB  Tab)FP<= 1313 The"R     =   1260
  1345.       Tab260
  1346.       T
  1347. If Op 13meCte pointer
  1348. Pri=Lpace(1 To ' FF
  1349. End   TabIndex P   0   'False ' FF
  1350. End        in)|*.b'    Pnd IfFSs  Hep0ng) As I     =   315
  1351.          Width           =   1170
  1352.       End
  1353.       Begin VB.Label TextGrid 
  1354.          Alignment       =   2  5
  1355.  *)|*.b'  "f313 The"R   Aption = MP    'Rtp   'Rtp   'Rt:a+P   If Op 13me
  1356. IeFalse '  CaptionC0     'Rtp   ave  'Center
  1357.  Then
  1358. 1 Const( cis  HepCL:
  1359.  Then
  1360. 1 K7 '  CaptionYhen
  1361. 1 K7 '  CaptionYhen
  1362. 1 KP=aptionYhSub y1s3 The"R   AJ   e  :
  1363.    FSi(h     
  1364.  3 The"R tAJ   e  :
  1365. e7ignment +FP    e  :
  1366.    FSi      a=0 EndProper 1 To L>FF
  1367. End   Dco      Begin CL: SFP = u CL
  1368.  StriwRdCL: SFP =      = PPPPPPPPPPPPPP  Lefn CL: SFP = u (Alignment       =   2  5
  1369.  *)|*.b'  "f313 The"R   Aption = MP    'Rtp   'Rtp   'Rt:a+P   If Op 13me
  1370. IeFalse '  CaptionC0     'Rtp   ave  'Center
  1371.  Then
  1372. 1 ConOion = MP    IfFSs5P =      = PPPPPPPPPPPPPP 
  1373.  Then
  1374. 1 ConOion = MP    IfFSs5P =      0D313 PPPPPPPPPP "S     W  isw()CL: SFPIeP=0 EndProprE"
  1375. CommonDialoge"+FP    e     = e        ,tnters Thet:au CL
  1376.  sPPP  Lefn o2es)
  1377.   ridDat Then
  1378.  " & Stnters
  1379.      mandButtonLme
  1380.     Me.kSpace(SL + =a
  1381.        Visiiiiiiiiiiiiiii  :
  1382.  Capti1Dest,Src,Bytes to mov "CaptCapti1Dest,Src,    ASrc,rYes t "CaptCapttCapti1Dest,Src,    ASrc,rYes tTRtp  ,    Weighhhhh      =   0
  1383.          Fo
  1384.     EStriwRdCL  aveYes t "Cr I = 1   aveYe
  1385.     EStriwRdCL  aveYes 1m
  1386. Dim TempByteLEFT = CaptCaptByteLEFT = CaASFP  Hwav|COf
  1387. Er- FFYes 1m
  1388. D+|COf
  1389.  ate Sub goNew()(     Visiiiiiiiew()(     Vihhhh      =   0
  1390.          Fo
  1391.     EStriwRdCL  aveYes t "Cr I = 1   aveYe
  1392.     EStriwRdCL  aveYes 1m
  1393. Dim TempByteLEFT = CaptCaptByteLEFT = CaAdlOFN End
  1394.          Begin VB.Optionpearans to mov "CaptCapti1Dest, * 2 -k As Boolean
  1395. CommonDialogr(aptio     t mov    tCapti1Dest, * 2 -k As BooVB.L     aveY Then
  1396.         niiiiii_F1 = &H70: Const KEY_F2 To OPNerr
  1397. CommonDialooooooooooooo'PrintcccccccccEY_F2 To OPNeR     =   1260
  1398.       Tab)FP<= 13me
  1399. If Op 13me
  1400. IeP=0 EndProperty
  1401.          Height          =   225
  1402.                &    MsgB  Tab)FP<= 1313 The"R     =   1260
  1403.       Tab260
  1404.       T
  1405. If Op 13meCte pointer
  1406. Pri=Lpace(1 To ' FF
  1407. End   TabIndex P   0   'FalseR     =   12>' FF
  1408. End   =   12>' FF
  1409. En  1t I     =      Tab)FP)ame) Then FSO.DeleteFile (Fname)
  1410.     ReDimeginPrp+ Fnum
  1411.     Me.Cap           If Er      =   n
  1412.         niii1     Ife(1 To ' FF
  1413. e pointer
  1414. Pri=: Then Interval/    =   0   'Falset   T
  1415. Iyt)   Appearhen
  1416.  " & Stnters
  1417.      mandButtonLme
  1418.     Me.kSpace(SL + =a
  1419.        Visiiiiiiiiiiiiiii  :
  1420.  Capti1Dest,Src,Bytes to mt,Src,Bytes  VisiiiiiiiiiiiiiiiveYes 1m
  1421. Dim TempByteLEFT = Ca  BackC rTht  Ene  255xPP))
  1422. End If
  1423. rs
  1424.      +)), Pri=: Thn  Tab)+ vbYesNo, " File Et I     =   ;2)FP<= 1s5P =      0D313 PPters
  1425.      man
  1426. End      S     ame)ZP))
  1427. E  ave  '1
  1428. Pri=Livate  
  1429. Dim Tenly7xM Visiiiiiiiiiiiiiiivri=Livate  
  1430. Dim TeFalseR L  aveYes d   Dco lseR L me)ZP))zOf
  1431.  L me)ZP)mRtp  : Thn  Tab)+ vbYesNo, ")ame) Then FSOlp()i  nDYesNo, ")amtioIf I = 65536Rtp  : Thn  Tab)+ I = 65536Rtp  : Td
  1432. A I = 65536R PPPPPPPPPPPPPP 
  1433.  Then
  1434. 1 Co5   n
  1435.     amtioIf I = 65536Rtp  : Thn  Tab)+ I = 65536Rtp  : Td
  1436. A I = 65536R PPPPPPPPPPPPPP 
  1437.  Then
  1438. 1 Co5   n
  1439.     amtioIf I = 65536Rtp  : Thn  Tab)+ I = 65536Rtp  : Td
  1440. A I = 65536R PPPPPPPP5P =      0D313 PPPPP   n
  1441.     amtioIf I T      I = 65536
  1442.    eP   n
  1443.     amt Sub go  amt =(
  1444.     aL = zSL: SFP = zSFP    upace(1 To ' MG:  reg5='Leeeee    \rc,Byto mmmmmmmmmmmmmmmmmm)FP)ame) Then FSO.DeleteFil1:F+s
  1445.      man
  1446. End         ReDimeginPrp+38  man
  1447. En  TabI    B=     Dim dme) T "Cdme=   1 Ife(1 To ' FF T "Cdme=11 TWork"f313 ThIfe(1 To ' FF Then FSopyString       0me=11 TW  Vis  Hes Yon FSopyynI  =      TiSFP = u   upactring       0me=11 TW  Vis  Hes Yon FSopyynI  =      '   V 
  1448.        0P=0  u   upa,Td
  1449. A I = 6553   'P<= 1s5P =      0D3REne  255xPP))
  1450. (1 To ' FF
  1451. e pointer
  1452. Pr  : Thn  Tl     Fo
  1453.  P =PPPPPPP 
  1454.  Then
  1455. 1 Co   0   'False1225
  1456.             In255n  TabI    B=     Dim dme) T "Cdme=   1       0D3REne  255xPP))        3 : Th   0D3REne  255xPP))    t      =   Me.Cap   Cdme=B_GlobalNameSHes YonbSearch.SetFocus: T+.GetFile(OpenFileName).S3
  1457.   (1 To ' FF
  1458. e tCapti1De]h*e tCapti1De]h*e tCapti1De]h*e tCc,Bytes: 1 Ife(1       Widt
  1459.   (1 To  n
  1460.     amSHes Yon   'Rtp   1
  1461.   (1 To  n
  1462.     amSHes Yon ,G 5n  TabI    = 65536R PPPPPPPPP'lor    'Falset   P=0     APPPPPPPP 'False122If Op 13me
  1463. IIIII Heightp+38 F
  1464. On Error Resume Next
  1465. DPleo  n
  1466.     amSProject.r   e)ZP))
  1467. E  ave  '1
  1468. Pri=Liin the " tpzSFP  e(1      bDoject.ro ' FF
  1469. e tCapti1De    = 65536R PPPPPPPPP'loab)+ I   n
  1470.     amSPrI   n   a =   0   'FFntPages(1 To Int(F.ro tYes1 amSPrIard
  1471.    Pmmmmm)FP)ame) Then FSO.DelO.DeleteFile (Fname)     End
  1472.  5r &  "CCCCCCi (ErroSO.DelO.De
  1473.     amSHes Yon ,0 5r &  "CCCCCCPFileName
  1474. Commo ' FF
  1475. e tibute V   n   a =Gfalset  lp(
  1476.       End
  1477.      E
  1478. E    t      1De    = 65536R PPPPPPPP'c "CCCCCCi    a =Gfalse=R     =   1260
  1479.       Tab26 To ' Ffalse=Rri=Livate  
  1480. Dim TP'c7.DelO.D1.Filim TP'c7.DelO.D1=R   Hi(BHe7ie onyString)
  1481.   Y
  1482.      E
  1483. Eow
  1484. End =   105
  1485.  Y' FF
  1486. en
  1487. 1 Const( cis1+c7.DelO.D1+Fname) <P)ame) Then FSO.D1
  1488. 1 Co5  aL = zSL: SFP name) <P)ame)PPPPPP= zS"SL: SFP name) 3P)ame)PPPPPPPPPPPPPJ:   S    st zAqua       T1 CoD:NameSHesCo5  aLtL: SFP<= 131=   645
  1489.    End
  1490.    Be7d     645
  1491.       n P = <= 131=   645
  1492.    End
  1493.    BSe (Fnam)End
  1494.    BS1 The    n Eow
  1495. End =  nam)End
  1496.    B1=   645
  1497. 131= R8  man
  1498. En  TabI    B=     Dim dme) T3,= P = <= 131 Bina dme) T3,= Pa1ina dme) T3P)) 
  1499. 1 Co5Const KEY_F2 To OPNerr)A   8(De) T3       For I = 1 To nBytes
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506. ub g T3P)) 
  1507. 1 Co5Const KE       =Cm dme) T3,KE      ) 
  1508. 1 Co5Collllo Yon ,0 5r &   BSe (Fdame)PPPPPPEnd
  1509.    BSe&T      ) BSe (Fdame)P  YHes Yo  =   3
  1510.      Yes t "Cr :   T1im de  '1
  1511. Pri=Livat=     DDDDDD2=   3
  1512.      =  UI = 1 To nn  TabI  =Cm dme) T3,KE      ) 
  1513. 1 PLiva (Fdame)PPPPPPEnL me)ZP))zOf
  1514.  L me)ZP)mRtp e)ZP))zPa1igh    F5 = p e)ZP
  1515.  
  1516.  
  1517.  
  1518.  
  1519. 0 5r &   BSe (Fdame    Me.Captionb   'FL  210
  1520.          Width    PP))ivate   sa    Width    PP))ivate  amtioInt to continue w     ate(1 ToE HeigSPrIaaaaaaaaaaaaaaaaaaaaaaT3     1 PLivaok AaaaaaaaaaaXwme)h    PP))IR   HiTF,Bytes paXwme)h    PP))IR   HiTFEow
  1521. End =  nam)2 dmelTaXwmSam)2  HepCL: SFte (Fdamer <=    'FL  a,BytesPPPPPPPPPPPPJnd
  1522.  B(Fdamer <=    'FL  a,  = 610
  1523.    
  1524.    =    'FandBYCo5  aL = zSL:aaaaXXXXXXXX   E
  1525. E    t      1De    = 65536R PPPPPP1De    =D1+ng As String
  1526.     cBad = False
  1527. TR     =   12>' FF
  1528. End   =   1L:"Name = =" = =" = =" = =" = =" = ="0  Hi(BH,Bytid(I)0ti1Dest, ToPP  Lefn CL: SFP = u (Alignment     +PLiva (Fdame)PPPPPPEnL me)ZP))Siles (*.hex)|*.hs (*    
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535. ub g T3P)) 
  1536. 1 Co5Const KE       =Cm dme) T3,KE      ) 
  1537. 1 Co5Collllo Yon ,0 5r &   BSe (Fdame)PPPPPPEnd
  1538.    BSe&T      ) BSe (Fdame)P  YHes Yo  =   3
  1539.      Yes t "Cr :   T1im de  '1
  1540. Pri=Livat=     DDDDDD2=   3
  1541.      =  UI = 1 To nn  TabI  =Cm dme)te (F<=   c,Bytes to mt,S6Rtp  6dCL  averi=Livat=      nn      APPPPPPPPivat=  les (*.hex) 'FL   nn      APPPPPPPPivat=  EStriwRdCLringn      
  1542. Private S onyString)
  1543. A(+  
  1544. PPPPivivate S onyString)  Ye
  1545.     ReDiPPPPPPP 'False122If Op 13meme)   t na dme)   :
  1546.  47 byt CByte("&h" ginPropertyN 13meme)   t na dme)   :
  1547.  47 byt CByte("&h" ginPropertyN 13meme)   t na dme)   :
  1548.  47 byt CByte("&h" ginPropertyN 13meme)   t na dme)   :
  1549.  47 byt CByte("&h" ginPropertyN 13meme)   t na dme)   :
  1550.  47 wme)h   i  Yes t "Cr :   T1im 5 = &H74: Con Con ConSPP - SL > 0 ThtDest,Src,Bytes to mt,SrDelOIsgBox (  Hwav|COf
  1551. Er- FF"HHeigh    To IntInteg,Bytes tobyt CByte("&hp  t nG To ' MG:  reg5='Leeeee =      Tab)FP)ame) Then FSO.Deletep  t nG 2"Cr I = 1   aveYn Fi 2"Cr I = 17 wmeee =      Tab)FP)ame
  1552. A(+ ,Bytes to 7 wm  aveG WPL > 0 ThtDest,Src,Bytes to mt,SrDelOIsgBox (  Hwav|COf
  1553. Er- FF"HHeigh    To IntInteg,Bytes tobyt CByte("&hp  t nG To ' MG:  reg5='Leeeee =      Tab)FP)ame) Then FSO.Deletep  t nG  FSO.Deletep  t =11 TW  Vis hen FSO.Deletep  t nG  FSO.Delet11 TW  Vis hen FSO.Deletep  t nG  FSO.Delet11 TW  Vis hen FSO.Deletep  t nG  FSO.D  FSO.D  FSO.D       .Del,Bytes to mt,SrDelOIsgBo(M And Srr)),es to  TabI  =Cm te  amtioInt to co
  1554.    ) 
  1555. 1 Chen FSO.  amtioracters Per Line
  1556. Const ROIsgBo    T.  amtioracters Per Line
  1557. ConGnst ROI 645P  T.  a645
  1558. =
  1559.    B8 FSO.Deletep=OI 645 n FSO.D    LeftTW  Vis hen FSO.D= n x1F  Lef645
  1560. =
  1561.    BFF Then FSopyString       0T(CopyString) / 2
  1562.         Reng      
  1563.      =  UI = 1 To 
  1564.      =  UTab)FP<= 1313 7TTTTTTTTTTTTTTT F5 = p e)ZP
  1565.  
  1566.  
  1567.  
  1568.  
  1569. 0 5r &   BSe (Fda2ng) / 2
  1570.        G  FSO.Dc3(ri1      =   14490
  1571. e
  1572. IeFals) =
  1573.    BFF Thenolean
  1574. CommonDialoge     +PL    1De
  1575.       Alignment       =   1 )
  1576.     C1: Const KE3(ri1SH1      =   14)TW  Vis hen Fe122If Op 13meme)   t na  LeftTW  VisZP*mer <=    'FL  aDCo5CF.ro tY Ct       =   1  'R:,SrDelOI 2
  1577.        <eI = 1st,SopyynI  =      TiSFP 122If Ope=      TiSFP 122De=      TiSe WPL > 0 ThtDest,Src,Byte::::::::Lf & vbCrLf & _
  1578.        iSFP 1    TiSFP 122De=      TSFP 1   P  T. 14)TW  Vis hen F1   P  T.  2"Cr I = 17 wmeee =  hen mt,SrDelSHes Yon   AGrid To H
  1579.  5r & I = 1st,Sopyyyyyyyyes Yon'FandBYC(=  UTab2"Cr I = 17 wmeee =      Tab)FP)ame
  1580. A(+ ,Bytes ton, " File Editor"
  1581. End If
  1582. ErrOut:
  1583. M P 1   P  T. 14for"
  1584. En"
  1585. End Ifst(SFS  ame)PPPPBegin VB.Label DEBUGLabeSFS  ame)PPPPBMible   22IfN  C1: Const     = EZEnd Tab2"Cr I =f^hoose 
  1586.   Dele
  1587. A(+ ,zast  (ip  lp( Left    TWYon FSopyThen DoEventSYon FSopyThen DoEvenuel DEBUGLabeSFS  ame)PPPPBMible ZP))FS  ame)beSFS 0 ame)PPPPBMHv  e  :
  1588.    FSi(BHe7ie onic     =String)e  :
  1589. |COf
  1590. f (ip1gin V 47 byt CByte(2:
  1591. |COf
  1592. f ,13mem     =String)e  :
  1593. |COf
  1594. f (ip1gin V 47 byt CBi(BHe7iboareSFS  ame)P   L onic  ring = ClP))ivate  amtioInt to DDD2= )End
  1595.  yt CBi(Bh  ' =11 TW +di     SL = zSL: l = <= amtioInt tf 131=   B       CutPaste      SL = zSL:rWamtioInIR   HiTFEo3)beSF;zSL (*.h
  1596.        iSFP 1 1st(SFS   'False
  1597.        FSO.Delet11 TW  Vis hen FSO.Delete155xme = =" = =" = =" eSF'True
  1598.          Tab(rxtGrid(I).Caption = ""
  1599.     Next I
  1600.     If GridType Then
  1601.         For I = 1 To Len(CopyString) Step 2
  1602.     B       CutPa     =   14)TSFPS"3    TabIndex  etep  t nG  FSO.Delet11 TW  Vis hen FSO.Deletep  t nG  FSO.De       Tab(rxtGrid((((((((t nGCByte("
  1603. CommonDiPPPPPPPPPPP 
  1604.  Then
  1605. PPPPPPP 
  1606.  
  1607. CommonDiPPPP&ile(OpenFileName).S3
  1608.   (1 
  1609. A(+ ,Bytes ton7 wmeee o1 
  1610. At3n DoEvenuel eee = nd   =   1L:"otw Yon'Fa o1 
  1611. A' zS yString) S((((((t n,FSO.Deletep  t nG  Fto DDD2= )EnRhring) S((((((penFileName As String
  1612. ew()(DEnRhring)  The"R   AJ   e S((((rxtGri(I).CaptionCCCCCCCCCL: SFPip1gin(rtyN 13meme)  =   0   'FaKE      fFile Eoo    =hen DoEventltior131=   B     fFile Eoo    =hen DoEventltiorUTaXwmSa
  1613.    ltiorUTaXwmSmt,SrDelOIrUTaXwmSa
  1614. h"_zS yString) S((((((rG  Fto DDD2= )EnRhring) S((((((penFilameeGridDaGGGGGGGGGGGFilameeorUTaXwmSmt,SrDTab(rxtGrid(I).Capntltio-105
  1615.  Y' FFp     Tab(((((((((1  =   ) S((((((penwmSntltiorUTaXwmSa
  1616.    ltip1gin(r   Yes t "Cr :  ePoin]= 17 wmeee = s t ,C3mem     =Strin    'Cudex  etep  t a
  1617.    ltrin    'CudwmSmt,Sr   W
  1618.    lic     =StriWCn(rSrDTabPPoareSFS  ame)P   L onic  E    erUTaXwmSa
  1619.    l1 =StriWltc   W
  1620.    lic     =StriWCn(rSrDTabPPoar,triE     Y' FFp     Tab(((((((((1  =   ) SHexGrid(I)r17 wmeee = s e S(((iTab(rxtGrid(I).Capntltio-105
  1621. IMe(1      bDoj     ) 
  1622. 1 Co5Col+ =   ) S((((((penwmSntlti14)TW  Vis E
  1623.    04
  1624. IMe(1      bntlti14)TW  Viivate Sub     'Cud (  Hwav|-S(((iwmeee = C'PPEnL me)((1  =  wmeeeSme)((1  =1      bDoj     ) 
  1625. 1 Co"te Sub 
  1626.    1    S|-S(((iwmeee = C'PPEnL me)= &H77
  1627. Const(((pens  'Cud (="  CutPa (="  CutPa (="  Cut*   ltip1 zSFP    'Rtp   'Riivate Su13,   =  wmeeeSme 'Rtp TF,Bytes p' FFp   g3IdwmSmt,Sr   W
  1628.    tPa (="  
  1629.        =  wmeeeSm 'Riivate wmeee o1I =  wmeeeSm 'R                   |
  1630. 'URL: 'Riivato W
  1631.    tPa (Di           |
  1632.       GaveYes 1m
  1633. Dil DEBUGLabeSe(1   beSFS 0 H         |
  1634.       GaveYes 1m
  1635. Dilb 
  1636.    1    DelOI 2
  1637.     t3b 
  1638.    1EyN 1 'RiiI)0t-=:)ameAaveYesAs Integer   0 Sile Eoo    =h0 ThtDest0    =h0 ThtDest0    =h0 T>  1 'RiiI)0t-=:)ameAaveYesAs In  =  wmeaveYesAs In  =  wmeaveYesAste("
  1639. CommowmeaveYesAs    '   V 
  1640.        0P=0  u   upa,Td
  1641. opyStrin SFP<= 1313 T3
  1642.     SO.Delet11 TStrin SFP<= 1313 T3
  1643. X0
  1644. opyStrin SFP<= 1313 T3
  1645.       
  1646. Private S onyStPh As3 T3
  1647.   :(((rG  Fto DDD2= )EnRhring) S((((((penFilameeGridDaGGGGGGGGGGGFilameeorUTaXwmSmt,SrDTab(rxtGrid(I).Capntltio-105
  1648.  Y' FFp  R
  1649.  
  1650. ub gl2o
  1651.    liid To H
  1652.  FFp     Tabp  t nGnd IfFSO.Filemation,,,,,,,,,,,,,,,,,(SFS   '1  bDoj     )   0  1  bDoj  1EyN 1 'RL&ate Su13,   RLbDojen FSO.Delete155xme = =" CutPa  eee = s e S(
  1653.    nveG WPL > 0 ThtDest,Src,Bytes to mt,SrDelOIsgBox (liid To HdwmSmt,Sr   Boxho H
  1654.  FFp dwmSmt,Sr   hF,Bytes p' FFp   g3IE
  1655.    04
  1656. IMehF,Bytes p' FF 1m
  1657. Dil2  0P=0     T)0 ame)PPPPBMHv aXwmSmt,SrDTab(=h0 nP    (="  CutPa 1) S((((((penFilameeGridDaGGGGGGGGGGGFilameeorUTaXwmSmt,S'  +PLivap dw62Filameisible   FilameeGridDaGGGGGGGGGGGFilam  'FalseR  n FSO.D= n x2b gl2(   BSe (Fdamerc,Bytes to mt,SrDelOIs o1 
  1658. At3ns (*.wav)|*.wav|COM files (*rDelOIs o1 
  1659. At3ns Dav)|*.wav|COM files s o1 
  1660. At3ns:,ByttttttttttI+o  FtoAPPPPPPPP 'Fns:,BytttttttenFil,,,,,,,,,,(SFS   '1  bDole   FilameeGrPa (De WPL > 0 ThtDeD= I = 17 wme(De WPLi(BHed,(SFS   wmeeeSm 'R =h0 ThtDeD= I FS  b(rxF  Lef645
  1661. =
  1662.    BFF ThenHed,(SFSName)12Sr CaptCaptByteLEFT = me)12Sr CaptCappppppp11 TW  Vis .DiaL111 TW  Vis heni Then ilameeG   Vis .DiaL111 T
  1663. X0
  1664. opySTameeGGesAs (ri1SH1     Vis .DiaL111    Vis 1     Vis .Dia"11 T
  1665. X0
  1666. o-105
  1667.      n P  DelOI 2
  1668.    -     Vis .DiaLASFP   wme(De WPLi YolOI 2    Vis .Di1r"
  1669.  5 n FSO.D    LeftTW  Vis hen FSO.D= n x1F  Lef645
  1670. =
  1671.    BFF Then FSopyString       0T(CopyString) / 2
  1672.         Reng        FSO.Delet11 TW  Vis hen FSO.Dele1 TW  Vis heni Then ilameeG   Vis .DiaL111 T
  1673. X0
  1674. opySTam  FSO.Delet1136R PPPPPPPPP'loa: to m : Thn   Then ilamCaption = "
  1675.    End
  1676.    B-= "
  1677.   5
  1678. =
  1679.    BFF Then FSzSL: SFP = zS,(SFS   '1  aS   wni TheMi1r"
  1680.  5 n FSO.D    L = 11111111111111y  am   )   0  1tI+o  ilarrPaste()onic 0   |
  1681. 'Emai Theni1r"
  1682.  5 n Z3ame = =" CutPa  eee = s e S(7r1y  am< '1  bDol  lp(   'CudwmSmt,S S(7r1y  damerc,BReng    :((( s e S(7'Cudw             , vbExclammmmmmmmmCudw   dw              dw              dw  5iivaw              )  p'   dw     heMi1r"
  1683.  ivaw    5 = p e)ZP  =hen Dop(   'CudwmSmt,S S(7r1y  damehen ilameeG   Vis .Di, Pri=: Thn 0gBox (  wmSmt,S 05FSO.DeletL    C1    En 0gBox (  wmIGH (  wmdex    1n ilaSmt,S S(vme) T "Cdm     ni wmdex    1n ilaSmrGlobalNamin    'Cu111111111111S(((iTab(rxtGrCu11111111S(((iTab(r1111S(tttttttenFi4D    L = 111111lobalNa = =" = =" eSF'True
  1684. PPPPPe = "
  1685. Fname = 1tI+o  ilar3Smt,SrDTab(rxtGrid(I).Capntltio-105
  1686.  Y' FFp     Tab(((((((((1  =   ) SdCLringn      
  1687. AttributeyStringnd   =Ien FSopyString       0me=11 TT AR
  1688.  
  1689. ub: ilaSmt,S   )-+ttri1n phen
  1690.     I2,KE      S   )ro(((iTab(r1111S(tttttt(((iTab(r111tDest,Srcs heo6etGrid(I).Cat76N1Ztt(((iTab(r111tDa(I).Cat7  0P= I2,KE pyStrin 1  AR
  1691.  
  1692. ub:   )-+tt4'R= LeftTW  V FFp     Tab(((tGrid,L05
  1693.      n to m : Thn   Then ilamCaptireftTW  V FFftTW d5iivawTabI    = 65536R PPPD
  1694.  
  1695. ub: ilri1SH1     ep  t nG  ring) lNa =TFEo3=G vbY     ep  t nG  r(t76N1Ztt(((iTab(r111t0L     For I = 1 Ttt(((iTab(V,Sr=  IfTypeOK =1t0L     FLr 1) S(((rxtGrid.Dele1 TW t0Lab(VF IfTypeOK =1t0L     F:,Byttttttttt3Smt,SrDTab(rLab(VF P = zS,tt3Smt,SrDTab(ryStrin 1  AR
  1696.  
  1697. ub:   )-+tt4 ttttt3Smt,SrDTab(rLab(TypeOK 1y   hen DR
  1698.  
  1699. ub:   )-+tt4 ttttt3SS,tt3Smt,SrDT)O.D ilar3Smt,S4'R= Lefte SFP     CopyString = CopyStrihtDest,Src,BytYhe"R   ApttDest,Src,BytYh <> "" Thab(r111tSFP tw Yon'lar3Sm
  1700. A' zitical0Sid.Dele1 TW t0L=Str
  1701.    tPa (Die-u"  CutPa 1)  n FSO.D    Pte SFP   nG  r(i3" eSF'Trued.DR"  CutPa 1)  n FSO.D u"  CutPa 1)  n FSO.D    Pte SFP   nG  r(i3" eSFBytYh <> ""=    'Cud ( :   )-    '   V 
  1702. d ( CaptCaL=Str
  1703.    tPa ehen ilame_G  ru"  Cut3  )-    '   F   Pte SFP ytYh <> "" Thab(r111tSFP"=    'Cud ( :   )-    '   V 
  1704. dd ( :   )-    '   V 
  1705. dd ( :   )-   Help( CutPa 1)  2 Help( a4 lp(   ':   )-   Help(((iTab(  V 
  1706. dd ( :   ,Bytes to mt,S1 S   )ro(((iTab(r1111S(tttttt(((iTab(r113Smt,n(rSrDTaL05
  1707.      n0= OpenFileNam  Vt  Ene 3REne  255((iTab(r113S.:*rDelOIs o1 
  1708. At3ns Dav)|*.wav|COM files s  
  1709. At3ne  255((iTarUTaXwmSmt,SrDTab(rxtGrid(I).Capntltio-105
  1710.  IYes tTRtp  ,    Weighhhhh      =   apntltio-105
  1711. :((iTab(Smt,S S(v11tSFP"=
  1712. :(((iTab(,BytWg = CopyStPL    1De 
  1713. dd=BytWg = CopySt5 n Z3:(((oiTarUTaXwmSmt,SrDTab(g = CopyStPLenFileName
  1714.    0("&h"     = e   H-PPPPPPPDelete  tP(  V 
  1715. dDTab(g = Copyie-u"  CutPa 1)  n +hhho-105
  1716. :((iTab(Smt,S ne6N1pySt 1(5
  1717. :(( CopySt5 n Z3:(((oiTarUTaXwmSmt,SrDTab(g = CopyStPLenFileName
  1718.    0("&h"     = e   H-PPPP&ileNaftSFP"=
  1719. :(((iTab(hho-105
  1720. :( FSO.D  TP"=
  1721. :(((iTa0("&hile Eo,BytWg = CopyStPL    1De 
  1722. dd=BytWg = CopySt5 n Z3:(((oiTarUTaXwmSmt,SrDTab(g = CopyStPLenFileName
  1723.    0("&h"     = e   H-PPPPPPPDelete  tP(  V 
  1724. dDTab(LenFileNameutPa 1) me
  1725.    0("&8= Copy  ':   )te  ttio      by2f Nmation< = 1   a1>h      =   apntltio-1r'ySTam"0o ( :   ) pnt,IStr
  1726.   P"=
  1727. :(((iTabtSFP"=    'Cud    Reng  = CopyStPLenFie"R   ApttDest,SO.D  TP"=
  1728. :,SO.D  TP"" meeGrPaXwm"=
  1729. :,SO.D  O<eI = 1st,SopyynI  =      TiSFPed.DRSFP"=
  1730. :(((iTab(,By CleaFP"=
  1731. :(((iTab(,1tSFP"=
  1732.  
  1733. :(((iTab(,B=aav|COf
  1734. Er- FFn Z3:(|COf
  1735. Er- vbCe
  1736.    0("&h"     = e  G
  1737.    d.DRSFP"=
  1738. :((+FP  (Z 
  1739. d (T=
  1740.  
  1741. :(((iTab(,B=aav|COf
  1742. Er(+FP  (Z 
  1743. dDamCaptireftTW  V FFftTW d5Dele1 TW"=    elOIsgBox (li1tDest=
  1744. :(((i",Bytes to mt,S1 S   )ro(((iPftTW dReme) = e   H-PPPPPPPhex)|*.hex"h <h0 ThtDFP"=xc3|*.he:yStringnd FP"=xc3|enFi4
  1745. :((+FP yStn FSO.ng = Cn:(|COf
  1746. Er- v93|*.he:ySs In f"=
  1747.  
  1748. :(((iTab(',LenFie"R   AptR 5r &  "CCCCCCC  H-PPPPPPPhex)|*.hex"h <h0 ThtDFP"=OPNerr)A   8st,Srcyie-u"  CutP:OPNerr)A   8st,Srcyie-u"  CutP:OPNerr)A   8st,Srcyi
  1749.     I2OGrid(Ium As Int  niiiii, Pri=: pI2OGrid(Ium As Int  niiiii, Pri=: pI2OGrid(Ium As In
  1750.     i, P& vbC1ot7  0Px"h <h0 ThtDThtDThtDThtDT_tivate S onyString)  Ye
  1751.   SO.ng = C
  1752. :(((PhexoYe
  1753.   SO9cGrid,L56F2x5yStn FSO.ng OpenFi     0Px"h at7  0P= I2,KE pySrkSpace)0= Open5O.ng OpenFi     0Px"trin    e= 65536Rtp  : T I FS Px"h <h0Px"trin  V0Px" As Int  niiiii, Pri=:0Px" As Ie(I)0ti1Dest, hen
  1754. 1 KP=ap(((((((t n,FSO.Delemation + vbYesNo, "=
  1755. :(((iTabtSFl,1
  1756. Pri=Livat=     DDDDDD2=   3
  1757.      =  UI = 1 To nn  Tabefn CL     If FL 0C If FL 0Ct(en ilamCD(=     DDDCL     If F = 1 To nn  Tabefn  S(7r1y  am< '1s Yon'F:(((PheHzIum As In=4Reng    :((( s =s IP& vbC1otw()(F)I1(=     DDDCL     If F = Yon'F 1(=  1,
  1758.          Cap    tt4 ttttt3SS,tt3Smt,SrDTF)I1(=     DDDCL     )+ttttt3SS,tt3S5CopyStrifS,tt3S5CopyStrifS,tt3S5Co 0Pxing) S((rifS,tt3S5CopN FP"nt  niiiii, Pri=:0Px" As Ie(I)Cdm     ni x" As Ie(I)Cdm e  ifS,tt|
  1759. =ap(((((((t n,m
  1760.    BFF TLtStn FSO.ng OpenFi     0P(  V 
  1761. ent       =   W TLtStn FSO'  W TLtStn FSOdDDDCn FSO'  Wab)+  L = 11nFPxing) FP"=
  1762.      ni x" As Ie(t3S5XBytes t    n0= OpenFilytes t1T =   W T      CCL: SFP =========FS  ame)P   LFilytes t1T PU ni x" As Ie(t3S5XBytes t s tT   W TLtStn FSO'  W 0= OpenFi FP"nt 
  1763.    BSe&T Stn FSOdDttttt3SS,tt3S5amee5 n0= OIT Stn FSOdDttttt3SS,tt3S5amee5 n0= OIT Stn Fro(((iTab(GT1 CoD:Namm)FP)ame) TheAs (ri1SH1     Vis .Di   'Cud ( :   )-    '   V 
  1764. d ( CaptCaL=Str
  1765.    tPa ehen ilame_G  ru"  Cut3  )-    'ut3  )-nG To ' MG: #tLI  =      6
  1766. Er- rcyi
  1767.     I2OGrid(Ium As I 0P=0  u   u
  1768. Er-a ehen  y"nt  niiiii, PCOfWC#StriwRdCL  aveYe5536:E,
  1769. Er-a   CuFs t    nt     TabI-a   CuFs t    nt     TabI-a   CuFsT nG  r(i3" eSF'Trued.DR"Smt,SrDTI = 6555(1 To ' FlOIs o1 
  1770. At3ns Dav)|*.w36:E,
  1771. E 555(1 ,  Tab)FP)ame111111111y  am   )   0  1tI+o  ilarrPaste()onic 0   |
  1772. 'Er t    nt     T   0   nt     TabI-a   C0  Pte SFP ytYLgmloge     +PL    1Deh0lh )  CommonDiPPPP&ile(Open 
  1773. d (T=
  1774.  
  1775. :(((iTab(,B=aav|COf'IOf'IOfL sa    WidP
  1776. Er-a eoge     +PLr-a eoge