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

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