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

  1. Form1
  2. +Program to Sort VB Procedures in .TXT Files
  3. Form1%
  4. DiskDrv
  5. PatternBox
  6. QuitBtn
  7. &Quit
  8. TreeDir
  9. FileFlb
  10. SortVBfileBtn
  11. &Sort VB .TXT file
  12. ViewFileBtn
  13. &View File
  14. PrintFileCom
  15. &Print File
  16. TextBox
  17. DriveLbl
  18. Drive:
  19. PatternLbl
  20.     Filename:
  21. DirectoryLbl
  22. Directory:
  23. FilesLbl
  24. Files:
  25. Form_ClickZ
  26.     Form_LoadY
  27. DateFormatOpt
  28. Value>
  29. TimeFormat
  30. TimeFormatOpt*
  31. NowBtn_Click
  32. TextBox
  33. QuitBtn_ClickV
  34. CountryCmb_Change%
  35. CountryCmbI
  36.     ComboItemm
  37. VScroll1_Change
  38. TimeScl_Changed
  39. ScrollBarValueBox
  40. TimeSclc
  41. ScrollValueBox
  42. Label1_Click
  43. TimerBtn_Clicke
  44. Count
  45. Total
  46. TextLine@
  47. TimerBtn
  48. Caption]
  49. Diff@    
  50. ScrollValueBox_Change
  51. MaxLbl_Click~
  52. TextBox_Change@
  53. TextBox_LostFocus
  54. QuitBtn
  55. Enabled
  56. False
  57.     MIN_VALUE
  58.     MAX_VALUE
  59. MinLble
  60. MaxLbl
  61. SmallChange
  62. LargeChange
  63. properties
  64. PrintBtn_Click
  65. FilenameI
  66. CurrentLineNumber$
  67.     MAX_LINES/
  68. PrintHeadingq
  69. Printer;
  70. BadFileG
  71. ExitSub
  72. PrintHadingW
  73. PageNumber
  74. PageNum}
  75. PageNumStr
  76. PrintTab
  77. TAB_SIZE5
  78. PageNumberStr
  79. Pageq
  80. TextBox_KeyPress
  81. KeyAScii
  82. Check4_Clicky
  83. HiddenChk_Click"
  84. PatternBox_Change5
  85. WindowStaten
  86. PatternBoxw
  87. DiskDrv_Change
  88. TreeDir
  89. DiskDrv
  90. Drive
  91. FileFlb_Click
  92. FileFlb
  93. ArchiveChk_Click
  94. Archive
  95. ArchiveChk
  96. SystemChk_Click
  97. System^
  98.     SystemChk
  99. ReadOnlyChk_Click
  100. ReadOnly
  101. ReadOnlyChk
  102. NormalChk_Click
  103. Normal(
  104.     NormalChkh
  105. Hidden
  106.     HiddenChkK
  107. TreeDir_Change
  108. PatternBox_KeyDown
  109. KeyCodeD
  110. Shift
  111. PatternBox_KeyPressJ
  112. PatternBox_LostFocus
  113. Pattern
  114. FindFileBtn_Click5
  115. Text1_Change~
  116. FindFileBox
  117.     ListCountx
  118. NotFound
  119. FindFileBox_Change
  120. FindFileBox_KeyPress
  121.     ListIndexd
  122. Label2_ClickX
  123.     BinSearchE
  124. Medianm
  125. Media9
  126. FileListBox
  127. FileFlb_PatternChange
  128. DirectoryLbl_Click
  129. DriveLbl_Click
  130. FileAttrFrm_DragDrop
  131. Source
  132. FilesLbl_Click
  133. FindFileLbl_Click
  134. PatternLbl_Clicki    
  135. SUB_KEYWORD
  136. FUNCTION_KEYWORD
  137. END_SUB
  138. END_FUNCTION
  139. SortVBfileBtn_Click
  140. GetFilenamef
  141. GetFileExt
  142.     Filename_
  143. MainFilename0
  144. ExtFilenameK    
  145. InputFileNumQ
  146. FreeF"
  147. ProcName
  148. Procy    
  149. GetExtFile
  150. IsSub/    
  151. LineNum
  152.     CountProc
  153. Rename
  154. FileNum
  155. FullFilename
  156. TheFilename
  157. MaxProc#    
  158.     CountPorc
  159. GetProcName
  160. GetSubName
  161. GetFunctionName
  162. OutputFileNum
  163. GetTempFilename
  164. GetTempFile
  165. SortProcedureData
  166. OutputFile
  167. CountPoc8    
  168. Skipp
  169. SkipY    
  170. InOrderd    
  171. IntegerDim
  172. inetger
  173. TempProcName
  174. TempFileNum
  175. MousePointer
  176. Form1
  177. ViewFileBtn_Click
  178. PrintFileCom_Click
  179. Switch
  180. DiskDrv_Change
  181.  update file tree path when the disk is changedg
  182. Form_Load
  183. *.txt"
  184. *.txt"
  185.  set Archive and Normal attributes to True and all
  186.  of the other file attributes to False
  187. GetFileExt
  188.  get the file extension name  
  189.  locate the "." in the filename
  190.  found the "." ?
  191.  get the file extension name
  192.  file extension name is a null stringl
  193. GetFilename
  194.  get the file name (without the dot delimiter)
  195.  locate the "." in the filenamee
  196.  found the "." ?
  197.  extract the filename without the dot delimiter
  198.  filename has no dot delimitor
  199. GetFunctionName
  200.  get the name of the declared Function  
  201.  locate the open parenthesis
  202. Function "
  203.  extract the name of the functionc
  204. GetSubName
  205.  get the name of the procedure  
  206.  locate the open parenthesis
  207.  extract the file name
  208. GetTempFilename
  209.  return the name of the temporray file #N (as $<N>.$$$)  n
  210.  return the larger value of I or J  
  211. PatternBox_KeyPress
  212. PatternBox_LostFocus
  213.  locate and remove multiple wildcardse
  214.  find first spacef
  215. PrintFileCom_Click
  216.  performs a simple print task  d
  217.  hourglass
  218.  get the next file bufferd
  219.  obtain the full filenameb
  220.  open file
  221.  read each line and print it
  222.  close printer buffero
  223.  close file buffer
  224.  restore mouse pointer
  225. QuitBtn_Click
  226. SortProcedureData
  227.  perform a Comb-sort on the arrays ProcName and FileNum.
  228.  The arrays are sorted IN DESCENDING order by using 
  229.  the data in ProcName.
  230.  swap array members
  231. SortVBfileBtn_Click
  232.  main filename
  233.  extension name
  234.  declare file I/O channel variables9
  235.  declare procedure counters0
  236.  declare dynamic arrays for procedure namesI
  237.  namey
  238.  file number
  239.  hourglass
  240.  obtain the full filenamep
  241.  extract main filename, including the path
  242.  extract the file extension name
  243.  delete previous ".BAK" file
  244.  turn off error-handler
  245.  rename file as .BAK
  246.  first pass simply counts the number of 
  247.  procedures in the filet
  248.  get the next file bufferd
  249.  initialize procedure countere
  250.  clear text box
  251.  loop to read examine each linen
  252. Function "
  253.  insert procedure heading in the text box 
  254.  close file buffer
  255.  found no procedures
  256.  rename file back to originalA
  257. No Sub or Function were found"
  258. Information"&
  259.  restore mouse pointer
  260.  redimension the arraysr
  261.  start pass 2s
  262.  get the next file bufferd
  263.  get the next file bufferd
  264.  open the temporary file $0.$$$ that stores the generalr
  265.  declarations sectioni
  266.  loop to locate the Sub and Function declarationse
  267.  read the next linei
  268.  does the line contain a Sub procedure?'
  269.  get procedure name
  270.  get the name of the next $n.$$$ filee
  271.  close current filec
  272.  get the next file bufferd
  273.  open file $n.$$$, where n = CountProc
  274. Function "
  275.  get function name
  276.  get the name of the next $n.$$$ filee
  277.  close current filer
  278.  get the next file bufferd
  279.  open file $n.$$$, where n = CountProc
  280.  write text line to $n.$$$ filel
  281.  close file buffersi
  282.  sort the arrays of procedures
  283.  set the special value for the element 0
  284.  get the next file bufferd
  285.  open the target filei
  286.  get the other $n.$$$ filesr
  287.  get the next file bufferd
  288.  get the $n.$$$ file namef
  289.  copy the lines of file $n.$$$ into the target file
  290.  close input bufferr
  291.  remove $n.$$$ filen
  292.  close output buffer
  293.  restore mouse cursor
  294. TextBox_KeyPress
  295. TreeDir_Change
  296. ViewFileBtn_Click
  297.  view the target file in TextBox  
  298.  get the next file bufferd
  299.