home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a025 / 10.ddi / TEXT.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1992-03-12  |  12.3 KB  |  297 lines

  1. PrimaryWindow
  2. ffffffffffffffff
  3. ffffffffffffffffffffffffffffffffoo
  4. ooffofoof
  5. fofoo
  6. ofoof
  7. ofofffffffffffffof
  8. ffffffffffffff
  9. offfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
  10. fffffffffffffo
  11. ffffffffffffff
  12. fffffffoo
  13. ffffffffffffffffffffffffffffffffff
  14. ffffffffffffffff
  15. Form1*
  16. Title_Edit
  17. Label1
  18. Databases:
  19. Label2
  20. Text file title:
  21. Database_List
  22. Label3
  23. File:
  24. Text_File_Label
  25. (none)
  26. Drive_Combo
  27. Text_File_List
  28. *.txt
  29. Label4
  30. Titles in database:
  31. Dir_Tree_Combo
  32. Titles_List
  33. VBSQL1
  34. VBSQL
  35. SQL Err/Msg
  36. Label5
  37. Text in database:
  38.     Text_Edit
  39. *    Menu_File
  40. &File
  41. Logon_Selection
  42. &Logon
  43. Log_Off_Selection
  44. Log &Off
  45. Exit_Selection
  46. &Exit
  47. Options_Menu
  48. &Options
  49. View_Selection
  50. &View Text
  51. Insert_Selection
  52. &Insert Text
  53. Delete_Selection
  54. &Delete Text
  55. About_Menu
  56. &About
  57. Logon_Selection_Click
  58. Load_Logon_Form
  59. Logon_Form
  60. LoadLogon_FormJ
  61. Log_Off_Selection_Click!
  62. SqlClose
  63. SqlConn
  64. SqlWinExit
  65. Form_Click
  66. FALSE#
  67. Logon_Selectionx
  68. Enabled
  69. Log_Off_Selections
  70. Exit_Selection
  71. View+
  72. View_Selection
  73. Insert_Selection
  74. Delete_Selection
  75. Exit_Selection_ClickN
  76.     Form_Load
  77. SqlUpdConn
  78. UpdSqlConn
  79. Msg3    
  80. SqlInit
  81. Bitmap_Filef
  82. View_Selection_ClickP
  83. Insert_Selection_Click6
  84. Insert_Bitmap_Form&
  85. Delete_Selection_Click:
  86. Delete_Bitmap_Form
  87. Temp_Bitmap_File
  88. Close_And_Exit
  89. Close_Connections
  90.     View_Form
  91. View_Bitmap_Formx
  92. Bitmap_Picture_Clickx
  93. About_Menu_Click
  94. About_Formk
  95. SqlDead
  96. View_Text_Form
  97.     View_Textd
  98. Insert_Text_Form
  99. Delete_Text_Formy
  100. Loginu
  101. Main_Menu_Form
  102. Logoff
  103. ExitApplication
  104. InitializeApplication
  105. PrimaryWindow
  106. CheckForTextTable
  107. Database_Selection_Click<
  108. ChangePrimaryWindowCaption
  109. Database_List_Click
  110. ResultsD
  111. SqlUse
  112. Database_list
  113. GetDatabaseName(
  114.     ListIndex
  115. SqlCmd
  116. SqlExecg
  117. SqlResultsz
  118. SqlNextRow3
  119. NOMOREROWS'
  120.     Text_List
  121. SqldataX
  122. ExecSQLCommand
  123. ChangePrimaryWindow
  124. Text_Edit_Change
  125. VBSQL1_Error
  126. SeverityS
  127. ErrorNum
  128. ErrorStr>
  129. RetCode
  130. DisplayDBLIBError
  131. ErrNum
  132. ErrMsg
  133. VBSQL1_Message
  134. MessageF
  135. State;
  136. MsgStr~    
  137. DisplaySQLError
  138. ErrorMsg
  139. Title_Edit_Change
  140. Title_Edit_KeyPressh
  141. KeyAscii
  142. Title_Edito
  143. Drive_Combo_ChangeW
  144. Insert_Text_Button
  145. Text_File_LabelY    
  146. Caption
  147. Dir_Tree_Combo`
  148. Drive_Combo
  149. Drive
  150. Dir_Tree_Combo_Change
  151. Text_File_List
  152. Text_File_List_Click
  153. Filename0
  154.     Text_File
  155. TitleJ
  156. Prepare_String
  157. MousePointer:
  158. Insert_Text.
  159.     Load_Text
  160. ExecuteSQLCommand
  161. Text_Title
  162. Response
  163.     Text_EditY
  164. Combo1_Change
  165. Combo1_Click
  166. Database_List_Changep
  167. Text_List_Click4
  168. DatabaseItem
  169. DatabaseSelectionH
  170. CheckServerConnectione
  171. PrimaryWindowTitleh
  172. SUCCEED
  173. List1~
  174.     ListCount
  175. RetrieveTextTitles
  176. LoadText
  177. InsertText
  178. PrepareStringf    
  179. Titles_List
  180. Text_Edit_KeyPress
  181. Table_FoundU
  182. Database>    
  183. NOMORERESULTS
  184. SqlPointer*    
  185. SqlTxPtr
  186. SqlTimestamp
  187. SqlTxTimeStamp
  188. DataPartLimit
  189. FileLen
  190. FileData
  191. DataPart
  192. TableI    
  193. DataPos
  194. DataLeno    
  195. SqlWriteText
  196.     SQLTXPLEN
  197. SqlOk
  198. SqlMoreText
  199. TextLen
  200. Offset
  201. LoadSizeLimit
  202. LoadSize
  203.     String_In
  204. String_Out
  205. ClearTextTitles
  206. Titles
  207. Text_TitlesE
  208. Msg_Box
  209. Titles_List_Click
  210. Titles_List_DblClick
  211. DBLIB_VERSION
  212. Label4_Click
  213. DatabaseName
  214. SqlName
  215. RemRem
  216. primary
  217. window
  218. DoubleQuotes
  219. GetDatabases
  220. Logon_Selection_Click
  221. Log_Off_Selection_Click
  222. Exit_Selection_Click
  223. Form_Load
  224. Text Example
  225. Insert_Selection_Click
  226. (none)
  227. Please select a text file to insert.
  228. Please enter a title for the text file you wish to insert.
  229. Delete_Selection_Click
  230. You must first select a title.
  231. Delete "
  232. Delete from text_table where title = '
  233. Delete aborted."
  234. View_Selection_Click
  235. You must first select a title.
  236. About_Menu_Click
  237. VBSQL1_Error
  238. VBSQL1_Message
  239. Title_Edit_KeyPress
  240. Drive_Combo_Change
  241. (none)
  242. Dir_Tree_Combo_Change
  243. (none)
  244. Text_File_List_Click
  245. Database_List_Click
  246.  Get the database user wants to open
  247.  If it doesn't have the text table in it, see if user wants to create onee
  248.  If it does exist, get all the text titles
  249.  Display the current database in the title windowi
  250.  clear the text fieldf
  251. Text_Edit_KeyPress
  252. RetrieveTextTitles
  253.  This routine will get all the text titles from the tablet
  254.  Put them in the list box as they are retrieved.
  255. Select title from text_table
  256. CheckForTextTable
  257.  Check to see if sample table exits
  258. Select count(*) from sysobjects where name = 'text_table'"
  259. Text table not found in 
  260.  database.
  261. Do you wish to create the table?
  262.  If sample table does not exist, create it
  263. create table text_table (title varchar(30) not null, text_col text null)
  264. InsertText
  265.  This routine will insert the text data into the table
  266.  Insert new row with title and token text valueo
  267. Insert into text_table values ('
  268. ','none')"
  269.  Get identifier for text column in current row
  270. select text_col from text_table where title = '"
  271.  Open text file to load into SQL Server tablew
  272. This application cannot display text files greater than 64K.
  273.  Begin inserting text into text column in DatePartLimit& size chunks
  274. text_table.text_col"
  275. Text inserted.
  276. LoadText
  277.  This routine will read the text field from the tablet
  278.  Clear Text_Edit box on primary window
  279.  Get length of text in text column
  280. select datalength(text_col) from text_table where title = '"
  281.  Set size limit on chunks of text data
  282.  Set size of text returned to LoadSizeLimit&
  283. set textsize "
  284.  Begin reading text column in LoadSizeLimit& size chunks
  285. Declare @val varbinary(30)
  286. Select @val = textptr(text_col) from text_table where title = '"
  287. READTEXT text_table.text_col @val 
  288.  Retrieve text data in result rows and place in text_edit box 
  289.  Load text data into edit box on primary window 
  290. PrepareString
  291.  This routine will double up the single quotation mark tor
  292.  avoid syntax errors
  293. ClearTextTitles
  294.  Clear all text titles out of list box
  295. Titles_List_Click
  296. Titles_List_DblClick
  297.