home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / QBAS / VBUTIL.ZIP / FVIEW2B.FRM (.txt) < prev    next >
Visual Basic Form  |  1993-03-04  |  5KB  |  151 lines

  1. Form1
  2. File Viewer (version 2B)
  3. Form1%
  4. FilenameBox
  5. FindBox
  6. DosBox
  7. TextBox
  8. FilenameLbl
  9. Filename Input
  10. FindLbl
  11. Find Input
  12. DosLbl
  13. DOS/Win Input
  14. FileCom
  15. &File
  16. ReadCom
  17. ToggleReadCom
  18. Toggle Read
  19. FindFileCom
  20.     Find File
  21. QuitCom
  22. D    SearchCom
  23. &Search
  24. FindCom
  25. CommandCom
  26. &Command
  27. DosCom
  28. DOS Command
  29. WinCom
  30. Windows Command
  31. ToggleOSCom
  32.     Toggle OS
  33. QuitBtn_Click
  34. Form_Click
  35. ReadBtn_Click
  36. FilenameBox
  37.     LineInput
  38. TextBox%
  39. TextLst_ClickG
  40. TextLstn
  41.     ListCount!
  42. ListSize
  43. FindBtn_ClickO
  44. CurrentLine
  45. Text1_Changev
  46. FindBox_Change
  47. FindBox
  48.     ListIndex
  49. Foundr
  50. FilenameBox_Change
  51.     Form_Load
  52.     MultiLine
  53. ScrollBars
  54. SelStart
  55.     SelLength
  56. CurrentIndexr
  57. CurIndex
  58. TextBox_Change
  59. Search
  60. SelText
  61. BadFile
  62. EndOfSub[
  63. Command1_Click
  64. DosBtn_Click^
  65. DosBox
  66. Dummy7
  67. WinBox_Click
  68. DosBox_Changee
  69. Label1_Clicku
  70. FindFileBtn_Click
  71. DosLbl_Click
  72. Filename
  73. subdirectory
  74. ToggleBtn_Click~
  75. ReadBtn
  76. Enabled
  77. False
  78. TrueQ
  79. ShowShellsBtn_Click
  80. Visible
  81. WinBtn_Click
  82. DosBtn
  83. WinBtn
  84. DosLblh
  85. Label3_Click
  86. FilenameLbl_Click
  87. FindLbl_Click
  88. ShowOSBtn_Click
  89. QuitCom_Click
  90. DosCom_Click
  91. FileCom_Click$
  92. FindCom_ClickI
  93. ToggleReadCom_Click
  94. ReadCom
  95. ReadCom_Click
  96. FindFileCom_Click
  97. WinCom_Click
  98. ToggleOSCom_Click
  99. WinCom
  100. DosCom
  101. BadFile2
  102.     EndOfSub2
  103. FinCom
  104. Checked
  105. FindCom
  106. FindLbl_Change
  107. CommandCom_Click
  108. DosCom_Click
  109.  invoke the DOSBAT batch file 
  110. dosbat.bat 
  111. FindBox_Change
  112. FindCom_Click
  113.  update the index to the current character
  114.  store the text of the Find box in the variable Find
  115.  is variable Find empty?
  116.  nothing to find
  117.  locate the index of the next substring Find in thed
  118.  text boxh
  119.  found a match?
  120.  Yes! Display the matching text as selected text
  121.  No! Clear any selected text
  122. FindFileCom_Click
  123.  invoke the DOS dir command with the /se
  124.  subdirectory option and the /p paginatedr
  125.  output option
  126. dosbat.bat dir 
  127.  /s/p
  128. FindLbl_Change
  129. QuitCom_Click
  130. ReadCom_Click
  131.  obtain filename from the filename text box 
  132.  if filename is an empty string, exitx
  133.  set error-handler
  134.  open the file
  135.  clear variable to reuse it
  136.  loop to read the text lines from the ASCII file
  137.  append a new line
  138.  copy F into text box 
  139.  close the filep
  140.  exit procedurep
  141. * Error-handler 
  142. Cannot open file 
  143. File I/O Error
  144. ToggleOSCom_Click
  145.  toggle the Visible property of the DosBox text box,
  146.  the DosBtn button, the WinBtn button, and the DosLbl
  147.  label
  148. ToggleReadCom_Click
  149. WinCom_Click
  150.  invoke a Windows application
  151.