home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / FERRAMEN / V_XBASE / VXBEZY.ZIP / VXBTUT2.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1993-04-13  |  8.9 KB  |  294 lines

  1. vxbtut2
  2. Business Card Directory Edit
  3. Form3%
  4. ButtonCancel
  5. &Cancel
  6. ButtonSave
  7. &Save
  8. ButtonMemo
  9. &Memo Edit
  10. Picture2
  11. AsBox
  12. CrBox
  13. AcBox
  14. FaBox
  15. PhBox
  16. ZiBox
  17. CyBox
  18. StBox
  19. CiBox
  20. A2Box
  21. A1Box
  22. TiBox
  23. NaBox
  24. CoBox
  25. Picture1
  26. %    StateHelp
  27. Label13
  28. Date, #Access
  29. Label12
  30. Activity
  31. Label10
  32. Phone, Fax
  33. Label8
  34. Country, Zip
  35. Label7
  36. State
  37. Label6
  38. Label5
  39.     Address 2
  40. Label4
  41.     Address 1
  42. Label3
  43. Title
  44. Label2
  45. Label1
  46. Company
  47. Form_Click
  48.     Form_Load
  49. EditMode
  50. ADDING
  51. CoBox
  52. Text#
  53. vxFieldy
  54. NaBox
  55. TiBoxM
  56. A1Box
  57. A2Box
  58. CiBox
  59. StBox
  60. CyBoxu
  61. ZiBox
  62. PhBox
  63. FaBox
  64. AcBox
  65. CrBox
  66. vxDateFormatH
  67. AsBox
  68.     vxInteger
  69. vxFieldTrim8
  70. vxSelectDbf
  71. DbfAreaQ
  72. Form_Paint
  73. vxFormFrame
  74. vxbtut2
  75. vxCtlStyle
  76. Picture1
  77. VX_RAISEa
  78. Picture2E
  79. Form_ResizeM
  80. Form_Unloadj
  81. CancelH
  82. ButtonCancel_Click/
  83. CoBox_Change
  84. CoBox_GotFocus
  85. vxCtlLength
  86. NaBox_Change
  87. NaBox_GotFocus
  88. TiBox_Change{
  89. TiBox_GotFocus/
  90. A1Box_Change
  91. A1Box_GotFocusA
  92. A2Box_Change
  93. A2Box_GotFocusc
  94. CiBox_Change
  95. CiBox_GotFocuss
  96. StBox_Change
  97. StBox_GotFocus&
  98. vxCtlFormat
  99. VX_UPPER
  100. CyBox_Change
  101. CyBox_GotFocus
  102. ZiBox_ChangeX
  103. PhBox_Change
  104. PhBox_GotFocusn
  105. FaBox_Changeh
  106. FaBox_GotFocus
  107. AcBox_Change
  108. AcBox_GotFocus
  109. ButtonSave_Click
  110. vxAppendBlankw
  111. vxReplString
  112. vxReplDate
  113. vxReplInteger
  114. vxWrite
  115. vxWriteHdr\
  116. vxbtut0
  117. StatBar
  118. vxRecNo
  119. StateHelp_Click
  120. VXFORM3G
  121. EnabledA
  122. FALSEF
  123. StateReturn&
  124. vxBrowse
  125. vxStateDbf
  126. vxState1Ntx
  127. CustReturn
  128. SaveReturn
  129.     CustStatee
  130. vxClientDbf
  131.     StatesDbf
  132. StateDbf
  133. StateNtx
  134.     CANCELLED
  135. vxSetSelect
  136. DELETINGn
  137. UPDATING
  138. vxDeleteRec
  139. vxTop
  140. vxEof"
  141. DeleRecW
  142.     StateHelp
  143. ButtonMemo
  144. ButtonSave
  145. ButtonCancel5
  146. vxLockRecord
  147. vxUnlock
  148. ButtonMemo_Click
  149. RecNum
  150. vxMemoEdit
  151. Form_LostFocus
  152. ZiBox_GotFocus<
  153. vxFieldSize
  154. vxLoackRecord+
  155. vxWindowDereg
  156. BrowseRunning
  157. StBox_LostFocus
  158. TiBox_LostFocus
  159. Picture1_Click
  160. Label8_Click
  161. Label13_Click
  162. StBox_KeyPress
  163. KeyAsciiv
  164. StBox_DragDrop
  165. Source
  166. Control
  167. StBox_DragOverP
  168. State
  169. StBox_KeyDown
  170. KeyCode
  171. Shift
  172. StBox_LinkClose
  173. StBox_LinkError
  174. LinkErr
  175. Label3
  176.     VX_RECESS
  177. Label9
  178. Text1
  179. Frame1_DragDrop
  180. Frame1
  181. A1Box_GotFocus
  182.  set length only. Any format acceptablea
  183. address1
  184. A2Box_GotFocus
  185.  set length only. Any format acceptable-
  186. address2
  187. AcBox_GotFocus
  188.  force activity to upper to achievei
  189.  data entry consistency as this is ans
  190.  indexed field
  191. activity
  192. ButtonCancel_Click
  193.  change global switch to tellt
  194.  caller we cancelled the operation
  195.  and unload the form
  196. ButtonMemo_Click
  197.  edit memo attached to this dbf record
  198.  save dbf rec number
  199. bmemo
  200.  reset rec pointer
  201.  the saving of the record number and thent
  202.  going to same after the memo edit ist
  203.  ABSOLUTELY necessary.
  204. ButtonSave_Click
  205.  if adding we append a blank record and 
  206.  set up the creation date field and 
  207.  initialize the access field
  208. cdate
  209. dd-mmm-yyyy
  210. accesses
  211.  if updating, bump the accesses counterc
  212. accesses
  213. accesses
  214. Sorry. Can't lock record!
  215.  replace the field data with text box data
  216. company
  217. title
  218. address1
  219. address2
  220. state
  221. country
  222. zipcode
  223. phone
  224. activity
  225.  commit the record to the disk
  226. CiBox_GotFocus
  227.  set length only. Any format acceptable-
  228. CoBox_GotFocus
  229.  set length only. Any format acceptable-
  230. company
  231. CyBox_GotFocus
  232.  force country to uppercase-
  233. country
  234. FaBox_GotFocus
  235. Form_Load
  236.  register default database
  237.  if not adding, fill text boxes with record data
  238. Editing record 
  239. company
  240. title
  241. address1
  242. address2
  243. state
  244. country
  245. zipcode
  246. phone
  247. activity
  248. cdate
  249. accesses
  250. ####0
  251. dd-mmm-yyyy
  252. Adding new record
  253.  disable memo edit because we can'te
  254.  edit a memo until we have a record 
  255.  added
  256. Form_Paint
  257.  register database with this window
  258.  make form 3-d
  259. Form_Resize
  260.  if form is resized, redraw so old
  261.  frame is erased
  262. Form_Unload
  263.  when form is unloaded, clear stat
  264.  bar and re-enable buttons
  265.  deregister the window to clearl
  266.  window and ctl format memorym
  267. NaBox_GotFocus
  268. PhBox_GotFocus
  269. phone
  270. StateHelp_Click
  271.  example of using vxBrowse to create
  272.  a help pick list 
  273. State/Prov Codes
  274.  after vxbtut2 is enabled, we must selectS
  275.  states file again because it hasn't beenv
  276.  registered with vxbtut2 and the "vxfield"
  277.  statement to extract the statecode would"
  278.  fail because "vxfield" accesses the databased
  279.  that is currently registered with vxbtut2
  280.  if the user selected an item from the
  281.  states file, StateReturn will be greater
  282.  than zero (it will contain the selected
  283.  record's number) so we can plug the
  284.  data entry box with the selected valuea
  285. statecode
  286.  now reselect our master databaseb
  287.  set the focus to the state data entry box
  288. StBox_GotFocus
  289. state
  290. TiBox_GotFocus
  291. title
  292. ZiBox_GotFocus
  293. zipcode
  294.